* [PATCH] fix cpumask.h in mainline for UPu
@ 2004-06-11 16:23 Bruno Ducrot
2004-06-11 23:04 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Bruno Ducrot @ 2004-06-11 16:23 UTC (permalink / raw)
To: linux-kernel
I'm trying to replace for_each_cpu() with for_each_cpu_mask() in
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
Unfortunately, though, davej pointed me that for_each_cpu_mask()
is not defined in -bk if CONFIG_SMP is not defined. Since this macro is
the only one not defined if compiled for UP, and since -mm tree do have
the correct behaviour already, is it possible to get this patch in mainline
before this portion of -mm is merged?
include/linux/cpumask.h | 1 +
1 files changed, 1 insertion(+)
--- a/include/linux/cpumask.h 2004/06/11 16:06:48
+++ b/include/linux/cpumask.h 2004/06/11 16:08:06
@@ -41,6 +41,7 @@ extern cpumask_t cpu_present_map;
#define cpu_possible(cpu) ({ BUG_ON((cpu) != 0); 1; })
#define cpu_present(cpu) ({ BUG_ON((cpu) != 0); 1; })
+#define for_each_cpu_mask(cpu, mask) for (cpu = 0; cpu < 1; cpu++)
#define for_each_cpu(cpu) for (cpu = 0; cpu < 1; cpu++)
#define for_each_online_cpu(cpu) for (cpu = 0; cpu < 1; cpu++)
#define for_each_present_cpu(cpu) for (cpu = 0; cpu < 1; cpu++)
Cheers,
--
Bruno Ducrot
-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fix cpumask.h in mainline for UPu
2004-06-11 16:23 [PATCH] fix cpumask.h in mainline for UPu Bruno Ducrot
@ 2004-06-11 23:04 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2004-06-11 23:04 UTC (permalink / raw)
To: Ducrot Bruno; +Cc: poup, linux-kernel
Bruno Ducrot <poup@poupinou.org> wrote:
>
> I'm trying to replace for_each_cpu() with for_each_cpu_mask() in
> arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
>
> Unfortunately, though, davej pointed me that for_each_cpu_mask()
> is not defined in -bk if CONFIG_SMP is not defined. Since this macro is
> the only one not defined if compiled for UP, and since -mm tree do have
> the correct behaviour already, is it possible to get this patch in mainline
> before this portion of -mm is merged?
>
> +#define for_each_cpu_mask(cpu, mask) for (cpu = 0; cpu < 1; cpu++)
Yup, I'll merge that up prior to 2.6.7, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-11 23:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-11 16:23 [PATCH] fix cpumask.h in mainline for UPu Bruno Ducrot
2004-06-11 23:04 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox