From: Vojtech Pavlik <vojtech@suse.cz>
To: torvalds@transmeta.com
Subject: [x86-64 patch 10/11] random.c precise timers on x86-64
Date: Thu, 13 Sep 2001 18:43:43 +0200 [thread overview]
Message-ID: <20010913184343.A2641@suse.cz> (raw)
Hi!
This patch adds precise timing support on x86-64 into random.c.
diff -urN linux-x86_64/drivers/char/random.c linux/drivers/char/random.c
--- linux-x86_64/drivers/char/random.c Thu Sep 13 15:17:33 2001
+++ linux/drivers/char/random.c Tue Sep 11 09:49:17 2001
@@ -717,6 +717,10 @@
} else {
time = jiffies;
}
+#elif defined (__x86_64__)
+ __u32 high;
+ rdtsc(time, high);
+ num ^= high;
#else
time = jiffies;
#endif
--
Vojtech Pavlik
SuSE Labs
reply other threads:[~2001-09-13 16:47 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=20010913184343.A2641@suse.cz \
--to=vojtech@suse.cz \
--cc=torvalds@transmeta.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
all inboxes | Powered by JetHome®