projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] bitops: x86_64: use generic bitops
[powerpc.git]
/
include
/
asm-x86_64
/
percpu.h
diff --git
a/include/asm-x86_64/percpu.h
b/include/asm-x86_64/percpu.h
index
29a6b04
..
4405b4a
100644
(file)
--- a/
include/asm-x86_64/percpu.h
+++ b/
include/asm-x86_64/percpu.h
@@
-26,10
+26,9
@@
#define percpu_modcopy(pcpudst, src, size) \
do { \
unsigned int __i; \
#define percpu_modcopy(pcpudst, src, size) \
do { \
unsigned int __i; \
- for (__i = 0; __i < NR_CPUS; __i++) \
- if (cpu_possible(__i)) \
- memcpy((pcpudst)+__per_cpu_offset(__i), \
- (src), (size)); \
+ for_each_cpu(__i) \
+ memcpy((pcpudst)+__per_cpu_offset(__i), \
+ (src), (size)); \
} while (0)
extern void setup_per_cpu_areas(void);
} while (0)
extern void setup_per_cpu_areas(void);