linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix #endif misplacement
@ 2003-11-28 16:19 Ricardo Nabinger Sanchez
  2003-11-28 16:34 ` Tim Schmielau
  0 siblings, 1 reply; 11+ messages in thread
From: Ricardo Nabinger Sanchez @ 2003-11-28 16:19 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, sisop-iii-l

This patch fixes an #endif misplacement, which leads to dead code in
sched_clock() in arch/i386/kernel/timers/timer_tsc.c, due to a return
outside the ifdef/endif.

Please consider applying, as sched_clock() apparently does not behave as
expected. Patched against 2.6.0-test11.

Regards.

-- 
Ricardo Nabinger Sanchez
GNU/Linux #140696 [http://counter.li.org]
Slackware Linux

  Warning: 
    Trespassers will be shot.
    Survivors will be shot again.



diff -urN linux-2.6.0-test11/arch/i386/kernel/timers/timer_tsc.c
linux-2.6.0-test11-sched_clock/arch/i386/kernel/timers/timer_tsc.c
--- linux-2.6.0-test11/arch/i386/kernel/timers/timer_tsc.c	2003-11-26 18:44:45.000000000 -0200
+++ linux-2.6.0-test11-sched_clock/arch/i386/kernel/timers/timer_tsc.c	2003-11-28 12:58:59.000000000 -0200
@@ -140,8 +140,8 @@
 	 */
 #ifndef CONFIG_NUMA
 	if (!use_tsc)
-#endif
 		return (unsigned long long)jiffies * (1000000000 / HZ);
+#endif
 
 	/* Read the Time Stamp Counter */
 	rdtscll(this_offset);

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

end of thread, other threads:[~2003-11-28 22:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-28 16:19 [PATCH] fix #endif misplacement Ricardo Nabinger Sanchez
2003-11-28 16:34 ` Tim Schmielau
2003-11-28 16:39   ` [SisopIII-l] " Felipe W Damasio
2003-11-28 16:59     ` Lucas Correia Villa Real
2003-11-28 17:05     ` Nick Piggin
2003-11-28 17:12       ` Felipe W Damasio
2003-11-28 21:15         ` Ricardo Nabinger Sanchez
2003-11-28 17:29   ` [patch] " Tim Schmielau
2003-11-28 18:29     ` [patch] another jiffies wrap bug Tim Schmielau
2003-11-28 21:35   ` [PATCH] fix #endif misplacement Ricardo Nabinger Sanchez
2003-11-28 22:24     ` [SisopIII-l] " Lucas Correia Villa Real

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).