mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Quieten hrtimer printk: "Switched to high resolution mode .."
@ 2007-10-29  5:35 Michael Ellerman
  2007-10-29  8:47 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Ellerman @ 2007-10-29  5:35 UTC (permalink / raw)
  To: tglx; +Cc: linux-kernel

Change the hrtimer printk "Switched to high resolution mode .." to
be KERN_DEBUG, rather than KERN_INFO. If users need to see this they
can pass "loglevel" or "debug" on the command line, or check dmesg.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---

Any objections? It gets a little repetitive, eg:

Switched to high resolution mode on CPU 0
Switched to high resolution mode on CPU 17
Switched to high resolution mode on CPU 10
Switched to high resolution mode on CPU 2
Switched to high resolution mode on CPU 7
Switched to high resolution mode on CPU 11
Switched to high resolution mode on CPU 3
Switched to high resolution mode on CPU 8
Switched to high resolution mode on CPU 12
Switched to high resolution mode on CPU 1
Switched to high resolution mode on CPU 4
Switched to high resolution mode on CPU 5
Switched to high resolution mode on CPU 13
Switched to high resolution mode on CPU 14
Switched to high resolution mode on CPU 15
Switched to high resolution mode on CPU 9
Switched to high resolution mode on CPU 6
Switched to high resolution mode on CPU 16

cheers


 kernel/hrtimer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index b6d2ff7..22a2514 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -602,7 +602,7 @@ static int hrtimer_switch_to_hres(void)
 	/* "Retrigger" the interrupt to get things going */
 	retrigger_next_event(NULL);
 	local_irq_restore(flags);
-	printk(KERN_INFO "Switched to high resolution mode on CPU %d\n",
+	printk(KERN_DEBUG "Switched to high resolution mode on CPU %d\n",
 	       smp_processor_id());
 	return 1;
 }
-- 
1.5.2.rc1.1884.g59b20


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Quieten hrtimer printk: "Switched to high resolution mode .."
  2007-10-29  5:35 [PATCH] Quieten hrtimer printk: "Switched to high resolution mode .." Michael Ellerman
@ 2007-10-29  8:47 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2007-10-29  8:47 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linux-kernel

On Mon, 29 Oct 2007, Michael Ellerman wrote:

> Change the hrtimer printk "Switched to high resolution mode .." to
> be KERN_DEBUG, rather than KERN_INFO. If users need to see this they
> can pass "loglevel" or "debug" on the command line, or check dmesg.
> 
> Signed-off-by: Michael Ellerman <michael@ellerman.id.au>

Thanks, applied.

	tglx

> ---
> 
> Any objections? It gets a little repetitive, eg:
> 
> Switched to high resolution mode on CPU 0
> Switched to high resolution mode on CPU 17
> Switched to high resolution mode on CPU 10
> Switched to high resolution mode on CPU 2
> Switched to high resolution mode on CPU 7
> Switched to high resolution mode on CPU 11
> Switched to high resolution mode on CPU 3
> Switched to high resolution mode on CPU 8
> Switched to high resolution mode on CPU 12
> Switched to high resolution mode on CPU 1
> Switched to high resolution mode on CPU 4
> Switched to high resolution mode on CPU 5
> Switched to high resolution mode on CPU 13
> Switched to high resolution mode on CPU 14
> Switched to high resolution mode on CPU 15
> Switched to high resolution mode on CPU 9
> Switched to high resolution mode on CPU 6
> Switched to high resolution mode on CPU 16
> 
> cheers
> 
> 
>  kernel/hrtimer.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
> index b6d2ff7..22a2514 100644
> --- a/kernel/hrtimer.c
> +++ b/kernel/hrtimer.c
> @@ -602,7 +602,7 @@ static int hrtimer_switch_to_hres(void)
>  	/* "Retrigger" the interrupt to get things going */
>  	retrigger_next_event(NULL);
>  	local_irq_restore(flags);
> -	printk(KERN_INFO "Switched to high resolution mode on CPU %d\n",
> +	printk(KERN_DEBUG "Switched to high resolution mode on CPU %d\n",
>  	       smp_processor_id());
>  	return 1;
>  }
> -- 
> 1.5.2.rc1.1884.g59b20
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-29  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-29  5:35 [PATCH] Quieten hrtimer printk: "Switched to high resolution mode .." Michael Ellerman
2007-10-29  8:47 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®