diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/cpu.c | 6 | ||||
| -rw-r--r-- | kernel/pid.c | 2 | ||||
| -rw-r--r-- | kernel/printk.c | 2 | ||||
| -rw-r--r-- | kernel/time/jiffies.c | 2 |
4 files changed, 8 insertions, 4 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 30e74dd6d01b..79e40f00dcb8 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c | |||
| @@ -379,8 +379,11 @@ static cpumask_var_t frozen_cpus; | |||
| 379 | 379 | ||
| 380 | int disable_nonboot_cpus(void) | 380 | int disable_nonboot_cpus(void) |
| 381 | { | 381 | { |
| 382 | int cpu, first_cpu, error = 0; | 382 | int cpu, first_cpu, error; |
| 383 | 383 | ||
| 384 | error = stop_machine_create(); | ||
| 385 | if (error) | ||
| 386 | return error; | ||
| 384 | cpu_maps_update_begin(); | 387 | cpu_maps_update_begin(); |
| 385 | first_cpu = cpumask_first(cpu_online_mask); | 388 | first_cpu = cpumask_first(cpu_online_mask); |
| 386 | /* We take down all of the non-boot CPUs in one shot to avoid races | 389 | /* We take down all of the non-boot CPUs in one shot to avoid races |
| @@ -409,6 +412,7 @@ int disable_nonboot_cpus(void) | |||
| 409 | printk(KERN_ERR "Non-boot CPUs are not disabled\n"); | 412 | printk(KERN_ERR "Non-boot CPUs are not disabled\n"); |
| 410 | } | 413 | } |
| 411 | cpu_maps_update_done(); | 414 | cpu_maps_update_done(); |
| 415 | stop_machine_destroy(); | ||
| 412 | return error; | 416 | return error; |
| 413 | } | 417 | } |
| 414 | 418 | ||
diff --git a/kernel/pid.c b/kernel/pid.c index 064e76afa507..af9224cdd6c0 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
| @@ -475,7 +475,7 @@ pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) | |||
| 475 | EXPORT_SYMBOL(task_session_nr_ns); | 475 | EXPORT_SYMBOL(task_session_nr_ns); |
| 476 | 476 | ||
| 477 | /* | 477 | /* |
| 478 | * Used by proc to find the first pid that is greater then or equal to nr. | 478 | * Used by proc to find the first pid that is greater than or equal to nr. |
| 479 | * | 479 | * |
| 480 | * If there is a pid at nr this function is exactly the same as find_pid_ns. | 480 | * If there is a pid at nr this function is exactly the same as find_pid_ns. |
| 481 | */ | 481 | */ |
diff --git a/kernel/printk.c b/kernel/printk.c index e651ab05655f..7015733793e8 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
| @@ -619,7 +619,7 @@ static int acquire_console_semaphore_for_printk(unsigned int cpu) | |||
| 619 | static const char recursion_bug_msg [] = | 619 | static const char recursion_bug_msg [] = |
| 620 | KERN_CRIT "BUG: recent printk recursion!\n"; | 620 | KERN_CRIT "BUG: recent printk recursion!\n"; |
| 621 | static int recursion_bug; | 621 | static int recursion_bug; |
| 622 | static int new_text_line = 1; | 622 | static int new_text_line = 1; |
| 623 | static char printk_buf[1024]; | 623 | static char printk_buf[1024]; |
| 624 | 624 | ||
| 625 | asmlinkage int vprintk(const char *fmt, va_list args) | 625 | asmlinkage int vprintk(const char *fmt, va_list args) |
diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c index 1ca99557e929..06f197560f3b 100644 --- a/kernel/time/jiffies.c +++ b/kernel/time/jiffies.c | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | * | 45 | * |
| 46 | * The value 8 is somewhat carefully chosen, as anything | 46 | * The value 8 is somewhat carefully chosen, as anything |
| 47 | * larger can result in overflows. NSEC_PER_JIFFY grows as | 47 | * larger can result in overflows. NSEC_PER_JIFFY grows as |
| 48 | * HZ shrinks, so values greater then 8 overflow 32bits when | 48 | * HZ shrinks, so values greater than 8 overflow 32bits when |
| 49 | * HZ=100. | 49 | * HZ=100. |
| 50 | */ | 50 | */ |
| 51 | #define JIFFIES_SHIFT 8 | 51 | #define JIFFIES_SHIFT 8 |
