lkml.org 
[lkml]   [2008]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: BUG: using smp_processor_id() during suspend with 2.6.25-rc8

* Pavel Machek <pavel@ucw.cz> wrote:

> diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c
> index 6c90fb9..8195c37 100644
> --- a/lib/smp_processor_id.c
> +++ b/lib/smp_processor_id.c
> @@ -35,6 +35,13 @@ unsigned int debug_smp_processor_id(void
> goto out;
>
> /*
> + * It is valid to assume CPU-locality if there's just one
> + * CPU active
> + */
> + if (num_online_cpus() == 1)
> + goto out;

thanks Pavel, i picked this up into sched-devel.git - it makes sense
independently of whether it solves the warning.

Ingo


\
 
 \ /
  Last update: 2008-04-11 12:53    [W:0.060 / U:1.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site