public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configure HAVE_UNSTABLE_SCHED_CLOCK for SGI_SN systems
@ 2009-01-06 16:27 Dimitri Sivanich
  2009-01-06 17:12 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Dimitri Sivanich @ 2009-01-06 16:27 UTC (permalink / raw)
  To: linux-ia64, Tony Luck, Greg KH
  Cc: linux-kernel, Peter Zijlstra, Gregory Haskins, Nick Piggin,
	Tony Luck, Robin Holt

Turn on CONFIG_HAVE_UNSTABLE_SCHED_CLOCK for SGI_SN.

SGI Altix has unsynchronized itc clocks.  This results in rq->clock
occasionally being set to a time in the past by a remote cpu.

Note that it is possible that this problem may exist for other ia64
machines as well, based on the following comment for sched_clock() in
arch/ia64/kernel/head.S:

 * Return a CPU-local timestamp in nano-seconds.  This timestamp is
 * NOT synchronized across CPUs its return value must never be
 * compared against the values returned on another CPU.  The usage in
 * kernel/sched.c ensures that.


Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>

---

Greg, if everyone is OK with this patch, this should also be applied
to all stable trees starting with 2.6.26.

 arch/ia64/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6/arch/ia64/Kconfig
===================================================================
--- linux-2.6.orig/arch/ia64/Kconfig	2009-01-06 10:13:13.051918923 -0600
+++ linux-2.6/arch/ia64/Kconfig	2009-01-06 10:13:44.547856328 -0600
@@ -536,6 +536,7 @@ config IA64_MC_ERR_INJECT
 
 config SGI_SN
 	def_bool y if (IA64_SGI_SN2 || IA64_GENERIC)
+	select HAVE_UNSTABLE_SCHED_CLOCK
 
 config IA64_ESI
 	bool "ESI (Extensible SAL Interface) support"

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

end of thread, other threads:[~2009-01-22 19:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 16:27 [PATCH] configure HAVE_UNSTABLE_SCHED_CLOCK for SGI_SN systems Dimitri Sivanich
2009-01-06 17:12 ` Greg KH
2009-01-06 20:15 ` Luck, Tony
2009-01-06 20:19   ` Robin Holt
2009-01-06 20:34     ` Luck, Tony
2009-01-06 20:57       ` Peter Zijlstra
2009-01-06 22:50         ` Robin Holt
2009-01-06 23:16           ` Peter Zijlstra
2009-01-07  3:00             ` Nick Piggin
2009-01-07  3:16               ` Jack Steiner
2009-01-07  7:28               ` Peter Zijlstra
2009-01-07  7:40                 ` Nick Piggin
2009-01-07  9:43                 ` Robin Holt
2009-01-07  9:53                   ` Peter Zijlstra
2009-01-07 13:32                     ` Dimitri Sivanich
2009-01-07 15:16                       ` Peter Zijlstra
2009-01-15 18:48 ` Greg KH
2009-01-15 19:21   ` Luck, Tony
2009-01-22 19:04     ` Greg KH

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