Re: [PATCH] Fix compilation of 2.6.23rc4-rt1 without CONFIG_PREEMPT_RT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
> 
> 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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-- 
Sven-Thorsten Dietrich
+1 (415) 694-2930

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux