| Age | Commit message (Collapse) | Author |
|
Minor type cleanup.
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
|
Add rol32 and ror32 bitops to bitops.h
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
|
The attached patch provides an out-of-line implementation of find_next_bit()
and rearranges linux/bitops.h to avoid a dependency loop between inline
functions in there and in asm/bitops.h trying to include one another.
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
|
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
|
"sparse" warns about implicit type conversions that may cause
surprising results. Did you know that large decimal types have
different type conversions from large hexadecimals?
|
|
- shmem: remove unneeded test for null inode->i_sb (James Morris)
- kill unused var warning in traps.c (Geert Uytterhoeven)
- s/u64/__u64/ in bitops.h (needed for klibc)
- comment fix in gfp.h (Matthew Dobson <colpatch@us.ibm.com>)
- fix smbfs constant overflow warning (Flameeyes <daps_mls@libero.it>)
- yam.c irqreturn_t fix.
- Remove some unused variables from baycom_epp.c (Adrian Bunk)
- Remove 5-year-old unreferenced RCS string from xirc2ps_cs.c (Adrian Bunk)
|
|
From: Matthew Dobson <colpatch@us.ibm.com>
This patch implements a generic version of the nr_cpus_node(node) macro
implemented for ppc64 by the previous patch.
The generic version simply computes an hweight of the bitmask returned by
node_to_cpumask(node) topology macro.
This patch also adds a generic_hweight64() function and an hweight_long()
function which are used as helpers for the generic nr_cpus_node() macro.
This patch also adds a for_each_node_with_cpus() macro, which is used in
sched_best_cpu() in kernel/sched.c to fix the original problem of
scheduling processes on CPU-less nodes. This macro should also be used in
the future to avoid similar problems.
Test compiled and booted by Andrew Theurer (habanero@us.ibm.com) on both
x440 and ppc64.
|
|
depending on whether the constant is a hexadecimal one as
opposed to a decimal one?
Let's make it all explicit. There are probably more lurking
around, these were found during development of my C checker tool.
|
|
Here's suspend-to-{RAM,disk} combined patch for
2.5.17. Suspend-to-disk is pretty stable and was tested in
2.4-ac. Suspend-to-RAM is little more experimental, but works for me,
and is certainly better than disk-eating version currently in kernel.
Major parts are: process stopper, S3 specific code, S4 specific
code.
|
|
|