From: Tony Lindgren <tony@atomide.com>
To: "Luck, Tony" <tony.luck@intel.com>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
Nick Piggin <nickpiggin@yahoo.com.au>
Subject: Re: [PATCH] Fix CONFIG_PRINTK_TIME hangs on some systems
Date: Thu, 4 May 2006 23:54:58 -0700 [thread overview]
Message-ID: <20060505065457.GA17774@atomide.com> (raw)
In-Reply-To: <B8E391BBE9FE384DAA4C5C003888BE6F0667FF31@scsmsx401.amr.corp.intel.com>
* Luck, Tony <tony.luck@intel.com> [060504 09:14]:
> > This issue has been discussed earlier on LKML, but AFAIK
> > there has not been any better solution available:
> >
> > http://lkml.org/lkml/2005/8/18/173
>
> I thought that this had been fixed:
>
> ia64 now has a "printk_clock()" defined in arch/ia64/kernel/time.c
> which overrides the "weak" symbol defined in kernel/printk.c. This
> calls ia64_printk_clock() ... which defaults to a jiffie based
> routine, but might be an ITC based routine if running on a system
> where the clocks do not drift on different cpus. Platform code
> can also override this function pointer (which SGI does in their
> sn_setup() routine).
>
> The ITC based routine still uses sched_clock(), but tries to avoid
> the original problems by not calling sched_clock() until the MMU
> has been set up to map the per-cpu areas (checks whether one of the
> AR.K registers has been set). Most of this in commit:
>
> http://tinyurl.com/ltexa
Thanks, I had missed that patch.
I still think the current printk_clock() approach is broken by
default on an unknown number of platforms.
Probably the best way to fix it would be to make it use jiffies
unless the platform registers a proper printk_clock() function.
> Do you still see a problem on some platform?
Yes, on various OMAP boards when 32KHz timer is being used. The 32KHz
timer is not enabled until in timer_init().
Regards,
Tony
next prev parent reply other threads:[~2006-05-05 6:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-04 16:14 Luck, Tony
2006-05-05 6:54 ` Tony Lindgren [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-05-04 10:24 Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060505065457.GA17774@atomide.com \
--to=tony@atomide.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome