From: Bruno Ducrot <poup@poupinou.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] fix cpumask.h in mainline for UPu
Date: Fri, 11 Jun 2004 18:23:07 +0200 [thread overview]
Message-ID: <20040611162307.GA18176@poupinou.org> (raw)
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.
next reply other threads:[~2004-06-11 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-11 16:23 Bruno Ducrot [this message]
2004-06-11 23:04 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040611162307.GA18176@poupinou.org \
--to=poup@poupinou.org \
--cc=ducrot@poupinou.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®