* [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* Re: [PATCH] Fix compilation of 2.6.23rc4-rt1 without CONFIG_PREEMPT_RT
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
0 siblings, 1 reply; 4+ messages in thread
From: Sven-Thorsten Dietrich @ 2007-09-17 16:02 UTC (permalink / raw)
To: Andi Kleen; +Cc: mingo, Thomas Gleixner, linux-rt-users
On Mon, 2007-09-17 at 17:52 +0200, Andi Kleen wrote:
> count_active_rt_tasks() is undefined otherwise.
>
This does fix the compile issue, but RT tasks can exist in !PREEMPT_RT
as well.
Sven
> 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
> -
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Sven-Thorsten Dietrich
+1 (415) 694-2930
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Fix compilation of 2.6.23rc4-rt1 without CONFIG_PREEMPT_RT
2007-09-17 16:02 ` Sven-Thorsten Dietrich
@ 2007-09-17 16:27 ` Andi Kleen
2007-09-17 16:37 ` Daniel Walker
0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2007-09-17 16:27 UTC (permalink / raw)
To: Sven-Thorsten Dietrich; +Cc: mingo, Thomas Gleixner, linux-rt-users
On Monday 17 September 2007 18:02:54 Sven-Thorsten Dietrich wrote:
> On Mon, 2007-09-17 at 17:52 +0200, Andi Kleen wrote:
> > count_active_rt_tasks() is undefined otherwise.
> >
>
> This does fix the compile issue, but RT tasks can exist in !PREEMPT_RT
> as well.
That might be, but neither rt_nr_running nor rt_nr_uninterruptible
exist in a !PREEMPT_RT kernel. So they are presumably managed in a different way.
-Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix compilation of 2.6.23rc4-rt1 without CONFIG_PREEMPT_RT
2007-09-17 16:27 ` Andi Kleen
@ 2007-09-17 16:37 ` Daniel Walker
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Walker @ 2007-09-17 16:37 UTC (permalink / raw)
To: Andi Kleen; +Cc: Sven-Thorsten Dietrich, mingo, Thomas Gleixner, linux-rt-users
On Mon, 2007-09-17 at 18:27 +0200, Andi Kleen wrote:
> On Monday 17 September 2007 18:02:54 Sven-Thorsten Dietrich wrote:
> > On Mon, 2007-09-17 at 17:52 +0200, Andi Kleen wrote:
> > > count_active_rt_tasks() is undefined otherwise.
> > >
> >
> > This does fix the compile issue, but RT tasks can exist in !PREEMPT_RT
> > as well.
>
> That might be, but neither rt_nr_running nor rt_nr_uninterruptible
> exist in a !PREEMPT_RT kernel. So they are presumably managed in a different way.
I think this is the 3rd or 4th fix for this same issue .. It's too bad
the -rt tree doesn't get updated more frequently ..
Daniel
^ 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.