lkml.org 
[lkml]   [2012]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] printk: Optimize if statement logic where newline exists
From
Date
On Fri, 2012-06-29 at 11:40 -0400, Steven Rostedt wrote:
> In reviewing Kay's fix up patch: "printk: Have printk() never buffer its
> data", I found two if statements that could be combined and optimized.
>
> Put together the two 'cont.len && cont.owner == current' if statements
> into a single one, and check if we need to call cont_add(). This also
> removes the unneeded double cont_flush() calls.
>
> Link: http://lkml.kernel.org/r/1340869133.876.10.camel@mop
>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> ---
>
> [ This patch is dependent on Kay's patch, referenced at the above Link ]
>

As the above link seems to time out, here's a more direct one:


http://marc.info/?l=linux-kernel&m=134084777330388

-- Steve



\
 
 \ /
  Last update: 2012-06-29 19:01    [W:0.018 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site