lkml.org 
[lkml]   [2009]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] hrtimer: Remove overly verbose "switch to high res mode" message
From
Date
On Thu, 2009-09-24 at 14:07 -0700, Roland Dreier wrote:
> On big systems, printing <number of CPUs> copies of
> Switched to high resolution mode on CPU nnn
> clutters up the kernel log for minimal gain. Just get rid of them.
> Signed-off-by: Roland Dreier <rolandd@cisco.com>
> diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
> index e5d98ce..4267279 100644
> --- a/kernel/hrtimer.c
> +++ b/kernel/hrtimer.c
> @@ -720,8 +720,6 @@ static int hrtimer_switch_to_hres(void)
> /* "Retrigger" the interrupt to get things going */
> retrigger_next_event(NULL);
> local_irq_restore(flags);
> - printk(KERN_DEBUG "Switched to high resolution mode on CPU %d\n",
> - smp_processor_id());

Perhaps pr_debug instead?
It gets compiled to nothing unless DEBUG is defined.




\
 
 \ /
  Last update: 2009-09-24 23:15    [W:0.049 / U:1.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site