public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Try 2: Make the TSC safe to be use by gettimeofday().
@ 2006-11-14 23:28 Suleiman Souhlal
  2006-11-14 23:36 ` [PATCH 1/1] Make the TSC safe to be used " Suleiman Souhlal
  2006-11-14 23:39 ` [PATCH 0/1] Try 2: Make the TSC safe to be use " Suleiman Souhlal
  0 siblings, 2 replies; 5+ messages in thread
From: Suleiman Souhlal @ 2006-11-14 23:28 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Linux Kernel ML, vojtech, Jiri Bohac

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-15  7:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-14 23:28 [PATCH 0/1] Try 2: Make the TSC safe to be use by gettimeofday() Suleiman Souhlal
2006-11-14 23:36 ` [PATCH 1/1] Make the TSC safe to be used " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox