diff options
author | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
---|---|---|
committer | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
commit | a215aa7b9ab3759c047201199fba64d3042d7f13 (patch) | |
tree | bca37493d9b2233450e6d3ffced1261d0e4f71fe /kernel/printk.c | |
parent | d31199a77ef606f1d06894385f1852181ba6136b (diff) |
Update 2.6.36 to 2.6.36.4wip-dissipation2-jerickso
Diffstat (limited to 'kernel/printk.c')
-rw-r--r-- | kernel/printk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index 9dc8ea140426..2dc36b49d2d2 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
@@ -1072,13 +1072,15 @@ void printk_tick(void) | |||
1072 | 1072 | ||
1073 | int printk_needs_cpu(int cpu) | 1073 | int printk_needs_cpu(int cpu) |
1074 | { | 1074 | { |
1075 | if (unlikely(cpu_is_offline(cpu))) | ||
1076 | printk_tick(); | ||
1075 | return per_cpu(printk_pending, cpu); | 1077 | return per_cpu(printk_pending, cpu); |
1076 | } | 1078 | } |
1077 | 1079 | ||
1078 | void wake_up_klogd(void) | 1080 | void wake_up_klogd(void) |
1079 | { | 1081 | { |
1080 | if (!trace_override && waitqueue_active(&log_wait)) | 1082 | if (!trace_override && waitqueue_active(&log_wait)) |
1081 | __raw_get_cpu_var(printk_pending) = 1; | 1083 | this_cpu_write(printk_pending, 1); |
1082 | } | 1084 | } |
1083 | 1085 | ||
1084 | /** | 1086 | /** |