Magellan Linux

Contents of /trunk/kernel26-magellan/patches-2.6.16-r10/0109-2.6.16.12-for_each_possible_cpu.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 70 - (show annotations) (download)
Thu May 11 19:09:22 2006 UTC (18 years ago) by niro
File size: 919 byte(s)
import

1 From: Andrew Morton <akpm@osdl.org>
2 Date: Mon, 24 Apr 2006 08:49:59 +0000 (-0700)
3 Subject: [PATCH] for_each_possible_cpu
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/stable/linux-2.6.16.y.git;a=commitdiff;h=45b001d0168593243bfd1005f8e9256c0ec3a912
5
6 [PATCH] for_each_possible_cpu
7
8 Backport for_each_possible_cpu() into 2.6.16. Fixes the alpha build, and any
9 future occurrences.
10
11 Signed-off-by: Andrew Morton <akpm@osdl.org>
12 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 ---
14
15 --- a/include/linux/cpumask.h
16 +++ b/include/linux/cpumask.h
17 @@ -408,6 +408,7 @@ extern cpumask_t cpu_present_map;
18 })
19
20 #define for_each_cpu(cpu) for_each_cpu_mask((cpu), cpu_possible_map)
21 +#define for_each_possible_cpu(cpu) for_each_cpu_mask((cpu), cpu_possible_map)
22 #define for_each_online_cpu(cpu) for_each_cpu_mask((cpu), cpu_online_map)
23 #define for_each_present_cpu(cpu) for_each_cpu_mask((cpu), cpu_present_map)
24