mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sched: 64-bit nr_running
@ 2006-05-15 15:31 Daniel Walker
  2006-05-15 16:25 ` Ingo Molnar
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Walker @ 2006-05-15 15:31 UTC (permalink / raw)
  To: linux-kernel; +Cc: nickpiggin, mingo, rostedt



There was a conversation over the mtd redboot bug related to unsigned
long vs. unsigned int . On a 64-bit machine unsigned long is 64-bits ,
and unsigned int is 32-bits . However, both are 32-bits on a 32-bit
machine .

Looking over the scheduler I found a few places that use "unsigned long"
for task counting variables (nr_running, nr_active, nr_interruptible) .
The problem is that these variables are all bound to 29 bits (according
to kernel/pid.c) , but they get expanded to 64-bits on 64-bit machines .

I CC'd Steve cause he seems interested in the topic of variable size
issues (bitmaps , unsigned long longs , etc ) .

Daniel


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-15 17:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-15 15:31 sched: 64-bit nr_running Daniel Walker
2006-05-15 16:25 ` Ingo Molnar
2006-05-15 16:27   ` Daniel Walker
2006-05-15 16:34     ` Ingo Molnar
2006-05-15 17:45       ` Daniel Walker

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®