From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] lockmeter does not require CONFIG_X86_TSC
Date: Sat, 27 Dec 2003 17:27:39 -0800 [thread overview]
Message-ID: <1030000.1072574859@[10.10.2.4]> (raw)
Due to the extreme twistedness of the world, CONFIG_X86_TSC doesn't
mean "I have a TSC", it means "I compiled out PIT support completely".
Don't ask me why.
However, this means that the check for it in the lockmeter code is
invalid - it's perfectly valid to use a i386 compiled kernel on a 686,
where CONFIG_X86_TSC is off, but we have both TSC and PIT support.
Patch simply removes the #error check.
M.
diff -urpN -X /home/fletch/.diff.exclude 620-force_wholefrag/include/asm-i386/lockmeter.h 630-lockmeter_notsc/include/asm-i386/lockmeter.h
--- 620-force_wholefrag/include/asm-i386/lockmeter.h Sat Dec 27 14:43:41 2003
+++ 630-lockmeter_notsc/include/asm-i386/lockmeter.h Sat Dec 27 17:16:58 2003
@@ -108,9 +108,6 @@ extern inline int rwlock_readers(rwlock_
/* this is a lot of typing just to get gcc to emit "rdtsc" */
static inline long long get_cycles64 (void)
{
-#ifndef CONFIG_X86_TSC
- #error this code requires CONFIG_X86_TSC
-#else
union longlong_u {
long long intlong;
struct intint_s {
@@ -121,7 +118,6 @@ static inline long long get_cycles64 (vo
rdtsc(longlong.intint.eax,longlong.intint.edx);
return longlong.intlong;
-#endif
}
#endif /* _I386_LOCKMETER_H */
reply other threads:[~2003-12-28 1:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='1030000.1072574859@[10.10.2.4]' \
--to=mbligh@aracnet.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®