mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "Milton D. Miller II" <miltonm@realtime.net>
Cc: linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: Re: 2.5.32-mm1
Date: Sun, 01 Sep 2002 12:54:01 +1000	[thread overview]
Message-ID: <20020831215556.898752C06A@lists.samba.org> (raw)
In-Reply-To: Your message of "Sat, 31 Aug 2002 03:24:43 EST." <200208310824.g7V8OhK11791@sullivan.realtime.net>

In message <200208310824.g7V8OhK11791@sullivan.realtime.net> you write:
> 
> In your patch, you have:
> 
> +#define cpu_possible(i)				({ BUG_ON((cpu) != 0); 
1; })
> 
> 
> Shouldn't the cpu match the i in the arg list?

Err.. no, I was just checking how many people read my patches.

Linus, please apply,
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

Name: cpu_possible for UP
Author: Rusty Russell
Status: Trivial

D: This patch defines cpu_possible() for non-SMP.

diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.32/include/linux/smp.h working-2.5.32-cpu-possible/include/linux/smp.h
--- linux-2.5.32/include/linux/smp.h	2002-08-28 09:29:53.000000000 +1000
+++ working-2.5.32-cpu-possible/include/linux/smp.h	2002-08-29 15:30:49.000000000 +1000
@@ -94,9 +94,10 @@ int cpu_up(unsigned int cpu);
 static inline void smp_send_reschedule(int cpu) { }
 static inline void smp_send_reschedule_all(void) { }
 #define cpu_online_map				1
-#define cpu_online(cpu)				({ cpu; 1; })
+#define cpu_online(cpu)				({ BUG_ON((cpu) != 0); 1; })
 #define num_online_cpus()			1
 #define num_booting_cpus()			1
+#define cpu_possible(cpu)				({ BUG_ON((cpu) != 0); 1; })
 
 struct notifier_block;
 

       reply	other threads:[~2002-09-01  2:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200208310824.g7V8OhK11791@sullivan.realtime.net>
2002-09-01  2:54 ` Rusty Russell [this message]
     [not found] <3D6D8CE0.D454ED66@zip.com.au>
2002-08-29  6:19 ` 2.5.32-mm1 Rusty Russell
2002-08-28 22:26 2.5.32-mm1 rwhron
  -- strict thread matches above, loose matches on Subject: below --
2002-08-28  4:22 2.5.32-mm1 Andrew Morton
2002-08-28 13:27 ` 2.5.32-mm1 Heinz Diehl
2002-08-28 16:47   ` 2.5.32-mm1 Andrew Morton
2002-08-28 17:57     ` 2.5.32-mm1 Heinz Diehl
2002-08-29  1:20     ` 2.5.32-mm1 Rusty Russell

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=20020831215556.898752C06A@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miltonm@realtime.net \
    --cc=torvalds@transmeta.com \
    /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®