diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/kprobes.c | 2 | ||||
| -rw-r--r-- | kernel/printk.c | 2 | ||||
| -rw-r--r-- | kernel/rcupreempt.c | 20 | ||||
| -rw-r--r-- | kernel/sched.c | 7 | ||||
| -rw-r--r-- | kernel/softlockup.c | 1 |
5 files changed, 15 insertions, 17 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index d4998f81e229..1485ca8d0e00 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
| @@ -79,7 +79,7 @@ static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL; | |||
| 79 | * | 79 | * |
| 80 | * For such cases, we now have a blacklist | 80 | * For such cases, we now have a blacklist |
| 81 | */ | 81 | */ |
| 82 | struct kprobe_blackpoint kprobe_blacklist[] = { | 82 | static struct kprobe_blackpoint kprobe_blacklist[] = { |
| 83 | {"preempt_schedule",}, | 83 | {"preempt_schedule",}, |
| 84 | {NULL} /* Terminator */ | 84 | {NULL} /* Terminator */ |
| 85 | }; | 85 | }; |
diff --git a/kernel/printk.c b/kernel/printk.c index 8fb01c32aa3b..e2129e83fd75 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
| @@ -666,7 +666,7 @@ static int acquire_console_semaphore_for_printk(unsigned int cpu) | |||
| 666 | return retval; | 666 | return retval; |
| 667 | } | 667 | } |
| 668 | 668 | ||
| 669 | const char printk_recursion_bug_msg [] = | 669 | static const char printk_recursion_bug_msg [] = |
| 670 | KERN_CRIT "BUG: recent printk recursion!\n"; | 670 | KERN_CRIT "BUG: recent printk recursion!\n"; |
| 671 | static int printk_recursion_bug; | 671 | static int printk_recursion_bug; |
| 672 | 672 | ||
diff --git a/kernel/rcupreempt.c b/kernel/rcupreempt.c index 5e02b7740702..41d275a81df5 100644 --- a/kernel/rcupreempt.c +++ b/kernel/rcupreempt.c | |||
| @@ -925,26 +925,22 @@ void rcu_offline_cpu(int cpu) | |||
| 925 | spin_unlock_irqrestore(&rdp->lock, flags); | 925 | spin_unlock_irqrestore(&rdp->lock, flags); |
| 926 | } | 926 | } |
| 927 | 927 | ||
| 928 | void __devinit rcu_online_cpu(int cpu) | ||
| 929 | { | ||
| 930 | unsigned long flags; | ||
| 931 | |||
| 932 | spin_lock_irqsave(&rcu_ctrlblk.fliplock, flags); | ||
| 933 | cpu_set(cpu, rcu_cpu_online_map); | ||
| 934 | spin_unlock_irqrestore(&rcu_ctrlblk.fliplock, flags); | ||
| 935 | } | ||
| 936 | |||
| 937 | #else /* #ifdef CONFIG_HOTPLUG_CPU */ | 928 | #else /* #ifdef CONFIG_HOTPLUG_CPU */ |
| 938 | 929 | ||
| 939 | void rcu_offline_cpu(int cpu) | 930 | void rcu_offline_cpu(int cpu) |
| 940 | { | 931 | { |
| 941 | } | 932 | } |
| 942 | 933 | ||
| 943 | void __devinit rcu_online_cpu(int cpu) | 934 | #endif /* #else #ifdef CONFIG_HOTPLUG_CPU */ |
| 935 | |||
| 936 | void __cpuinit rcu_online_cpu(int cpu) | ||
| 944 | { | 937 | { |
| 945 | } | 938 | unsigned long flags; |
| 946 | 939 | ||
| 947 | #endif /* #else #ifdef CONFIG_HOTPLUG_CPU */ | 940 | spin_lock_irqsave(&rcu_ctrlblk.fliplock, flags); |
| 941 | cpu_set(cpu, rcu_cpu_online_map); | ||
| 942 | spin_unlock_irqrestore(&rcu_ctrlblk.fliplock, flags); | ||
| 943 | } | ||
| 948 | 944 | ||
| 949 | static void rcu_process_callbacks(struct softirq_action *unused) | 945 | static void rcu_process_callbacks(struct softirq_action *unused) |
| 950 | { | 946 | { |
diff --git a/kernel/sched.c b/kernel/sched.c index 94ead43eda62..4e2f60335656 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
| @@ -5622,10 +5622,10 @@ static int __migrate_task(struct task_struct *p, int src_cpu, int dest_cpu) | |||
| 5622 | double_rq_lock(rq_src, rq_dest); | 5622 | double_rq_lock(rq_src, rq_dest); |
| 5623 | /* Already moved. */ | 5623 | /* Already moved. */ |
| 5624 | if (task_cpu(p) != src_cpu) | 5624 | if (task_cpu(p) != src_cpu) |
| 5625 | goto out; | 5625 | goto done; |
| 5626 | /* Affinity changed (again). */ | 5626 | /* Affinity changed (again). */ |
| 5627 | if (!cpu_isset(dest_cpu, p->cpus_allowed)) | 5627 | if (!cpu_isset(dest_cpu, p->cpus_allowed)) |
| 5628 | goto out; | 5628 | goto fail; |
| 5629 | 5629 | ||
| 5630 | on_rq = p->se.on_rq; | 5630 | on_rq = p->se.on_rq; |
| 5631 | if (on_rq) | 5631 | if (on_rq) |
| @@ -5636,8 +5636,9 @@ static int __migrate_task(struct task_struct *p, int src_cpu, int dest_cpu) | |||
| 5636 | activate_task(rq_dest, p, 0); | 5636 | activate_task(rq_dest, p, 0); |
| 5637 | check_preempt_curr(rq_dest, p); | 5637 | check_preempt_curr(rq_dest, p); |
| 5638 | } | 5638 | } |
| 5639 | done: | ||
| 5639 | ret = 1; | 5640 | ret = 1; |
| 5640 | out: | 5641 | fail: |
| 5641 | double_rq_unlock(rq_src, rq_dest); | 5642 | double_rq_unlock(rq_src, rq_dest); |
| 5642 | return ret; | 5643 | return ret; |
| 5643 | } | 5644 | } |
diff --git a/kernel/softlockup.c b/kernel/softlockup.c index c828c2339cc9..a272d78185eb 100644 --- a/kernel/softlockup.c +++ b/kernel/softlockup.c | |||
| @@ -120,6 +120,7 @@ void softlockup_tick(void) | |||
| 120 | printk(KERN_ERR "BUG: soft lockup - CPU#%d stuck for %lus! [%s:%d]\n", | 120 | printk(KERN_ERR "BUG: soft lockup - CPU#%d stuck for %lus! [%s:%d]\n", |
| 121 | this_cpu, now - touch_timestamp, | 121 | this_cpu, now - touch_timestamp, |
| 122 | current->comm, task_pid_nr(current)); | 122 | current->comm, task_pid_nr(current)); |
| 123 | print_modules(); | ||
| 123 | if (regs) | 124 | if (regs) |
| 124 | show_regs(regs); | 125 | show_regs(regs); |
| 125 | else | 126 | else |
