All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix compilation of 2.6.23rc4-rt1 without CONFIG_PREEMPT_RT
@ 2007-09-17 15:52 Andi Kleen
  2007-09-17 16:02 ` Sven-Thorsten Dietrich
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2007-09-17 15:52 UTC (permalink / raw)
  To: mingo, Thomas Gleixner; +Cc: linux-rt-users


count_active_rt_tasks() is undefined otherwise.

Signed-off-by: Andi Kleen <ak@suse.de>

Index: linux-2.6.23-rc4-rt1/kernel/timer.c
===================================================================
--- linux-2.6.23-rc4-rt1.orig/kernel/timer.c
+++ linux-2.6.23-rc4-rt1/kernel/timer.c
@@ -919,18 +919,20 @@ static unsigned long count_active_tasks(
 #endif
 }
 
-#ifdef CONFIG_PREEMPT_RT
 /*
  * Nr of active tasks - counted in fixed-point numbers
  */
 static unsigned long count_active_rt_tasks(void)
 {
+#ifdef CONFIG_PREEMPT_RT
 	extern unsigned long rt_nr_running(void);
 	extern unsigned long rt_nr_uninterruptible(void);
 
 	return (rt_nr_running() + rt_nr_uninterruptible()) * FIXED_1;
-}
+#else
+	return 0;
 #endif
+}
 
 /*
  * Hmm.. Changed this, as the GNU make sources (load.c) seems to

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

end of thread, other threads:[~2007-09-17 16:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-17 15:52 [PATCH] Fix compilation of 2.6.23rc4-rt1 without CONFIG_PREEMPT_RT Andi Kleen
2007-09-17 16:02 ` Sven-Thorsten Dietrich
2007-09-17 16:27   ` Andi Kleen
2007-09-17 16:37     ` Daniel Walker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.