From: Philipp Kohlbecher <xt28@gmx.de>
To: linux-kernel@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>, John Stultz <johnstul@us.ibm.com>
Subject: clocksources: order of preference
Date: Thu, 08 May 2008 12:40:54 +0200 [thread overview]
Message-ID: <4822D8B6.4090008@gmx.de> (raw)
Why is the TSC preferred to the HPET as a clocksource for the x86
architecture?
"Understanding the Linux Kernel" states that the HPET is preferable to
the TSC due to its richer architecture. Up to version 2.6.17.14,
arch/i386/kernel/timers/timer.c also contained a comment to that effect
and accordingly ranked the HPET before the TSC.
This was changed when the new clocksource infrastructure was introduced
with version 2.6.18. (The HPET clocksource received a rating of 250; the
TSC, 300.)
Preferring the TSC leads to problems when it is unstable. While this can
be prevented by setting CONFIG_X86_TSC, certain distribution kernels
(striving for compatibility) don't, resulting in soft lockups.
Are there better reasons to prefer the TSC or may I submit a patch that
swaps the respective ratings?
Thanks for reading,
- Philipp Kohlbecher
Please CC me, I am not on the list.
next reply other threads:[~2008-05-08 10:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-08 10:40 Philipp Kohlbecher [this message]
2008-05-08 10:59 ` clocksources: order of preference Thomas Gleixner
2008-05-08 11:07 ` Philipp Kohlbecher
2008-05-08 11:46 ` Thomas Gleixner
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=4822D8B6.4090008@gmx.de \
--to=xt28@gmx.de \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.