lkml.org 
[lkml]   [2010]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] printk: use this_cpu_{read|write} api on printk_pending
From
Date
On Fri, 2010-11-26 at 17:22 +0100, Eric Dumazet wrote:
> [PATCH] printk: use this_cpu_{read|write} api on printk_pending
>
> __get_cpu_var() is a bit inefficient, lets use __this_cpu_read() and
> __this_cpu_write() to manipulate printk_pending.
>
> printk_needs_cpu(cpu) is called only for the current cpu :
> Use faster __this_cpu_read().
>
> remove the redondant unlikely on (cpu_is_offline(cpu)) test
>
> # size kernel/printk.o*
> text data bss dec hex filename
> 9942 756 263488 274186 42f0a kernel/printk.o.new
> 9990 756 263488 274234 42f3a kernel/printk.o.old


Thanks, queued!


\
 
 \ /
  Last update: 2010-11-26 17:31    [W:0.170 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site