[PATCH] powerpc: Silence timebase sync code
Michael Ellerman
michael at ellerman.id.au
Tue Nov 18 10:28:21 EST 2008
On Mon, 2008-11-17 at 14:22 -0800, Trent Piepho wrote:
> On Mon, 17 Nov 2008, Kumar Gala wrote:
> > On Nov 17, 2008, at 3:58 PM, Trent Piepho wrote:
> >
> >> It's over a dozen lines of output and doesn't appear to provide any useful
> >> information. Even after looking at the code, I'm in the dark about what
> >> "score 299, offset 250" means.
> >>
> >> Signed-off-by: Trent Piepho <tpiepho at freescale.com>
> >> ---
> >> arch/powerpc/kernel/smp-tbsync.c | 12 ++++--------
> >> 1 files changed, 4 insertions(+), 8 deletions(-)
> >>
> >> diff --git a/arch/powerpc/kernel/smp-tbsync.c
> >> b/arch/powerpc/kernel/smp-tbsync.c
> >> index bc892e6..b590135 100644
> >> --- a/arch/powerpc/kernel/smp-tbsync.c
> >> +++ b/arch/powerpc/kernel/smp-tbsync.c
> >> @@ -113,7 +113,7 @@ void __devinit smp_generic_give_timebase(void)
> >> {
> >> int i, score, score2, old, min=0, max=5000, offset=1000;
> >>
> >> - printk("Synchronizing timebase\n");
> >> + pr_info("Synchronizing timebase\n");
> >
> > I think its useful to leave this as a printk.
>
> #define pr_info(fmt, arg...) \
> printk(KERN_INFO fmt, ##arg)
>
> Isn't printk with no level tag the same as KERN_INFO?
Stuff like this should IMHO be printk(KERN_DEBUG ..)
That way it will show up in the log as long as you boot with 'debug' on
your command line, it doesn't require a kernel recompile to turn on. And
at the same time it doesn't spam the boot log for a normal boot.
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20081118/7c1574d1/attachment.pgp>
More information about the Linuxppc-dev
mailing list