From: Suleiman Souhlal <ssouhlal@FreeBSD.org>
To: Andi Kleen <ak@suse.de>
Cc: Linux Kernel ML <linux-kernel@vger.kernel.org>,
vojtech@suse.cz, Jiri Bohac <jbohac@suse.cz>
Subject: [PATCH 0/1] Try 2: Make the TSC safe to be use by gettimeofday().
Date: Tue, 14 Nov 2006 15:28:47 -0800 [thread overview]
Message-ID: <455A512F.6030907@FreeBSD.org> (raw)
Hi,
Here are the fixes from the previous version:
- Don't use hard_smp_processor_id().
- Use the PDA to store a pointer to the current CPU's vxtime data.
- Use vgetcpu() to get the CPU number from vgettimeofday()
(Due to a bug in vgetcpu(), this only works with CONFIG_HOTPLUG_CPU=y)
- No externs in .c files
- Use idle notifiers instead of doing the HPET read in switch_to
- Fix race in vgettimeofday() by checking the RIP of the process we're switching away from
in switch_to, and touching the vxtime seqlock if it happens to be in the VSYSCALL page.
(I hope this is not considered too much work for switch_to)
- Remove usage of preempt_disable/enable() in do_gettimeoday(), since the above fix make it
unnecessary.
-- Suleiman
next reply other threads:[~2006-11-14 23:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 23:28 Suleiman Souhlal [this message]
2006-11-14 23:36 ` [PATCH 1/1] Make the TSC safe to be used by gettimeofday() Suleiman Souhlal
2006-11-15 4:42 ` Andi Kleen
2006-11-15 7:14 ` Suleiman Souhlal
2006-11-14 23:39 ` [PATCH 0/1] Try 2: Make the TSC safe to be use " Suleiman Souhlal
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=455A512F.6030907@FreeBSD.org \
--to=ssouhlal@freebsd.org \
--cc=ak@suse.de \
--cc=jbohac@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/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