mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix CPU bitmask truncation (2 of 2)
@ 2003-01-02 19:15 Bjorn Helgaas
  0 siblings, 0 replies; only message in thread
From: Bjorn Helgaas @ 2003-01-02 19:15 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: linux-kernel

This does not make a functional difference, so ignore it if you
like.  Two reasons you might want it:

  1) It's in 2.5.x, so you might want it for consistency.
  2) Comments in sched.h refer to cpus_runnable being ~0
     if the process is not running on any CPU.

diff -Nru a/include/linux/sched.h b/include/linux/sched.h
--- a/include/linux/sched.h	Mon Dec 16 11:58:42 2002
+++ b/include/linux/sched.h	Mon Dec 16 11:58:42 2002
@@ -482,8 +482,8 @@
     policy:		SCHED_OTHER,					\
     mm:			NULL,						\
     active_mm:		&init_mm,					\
-    cpus_runnable:	-1,						\
-    cpus_allowed:	-1,						\
+    cpus_runnable:	~0UL,						\
+    cpus_allowed:	~0UL,						\
     run_list:		LIST_HEAD_INIT(tsk.run_list),			\
     next_task:		&tsk,						\
     prev_task:		&tsk,						\


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-02 19:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-02 19:15 [PATCH] Fix CPU bitmask truncation (2 of 2) Bjorn Helgaas

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®