diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-02-12 15:19:16 -0500 |
---|---|---|
committer | Christoph Lameter <clameter@sgi.com> | 2008-02-12 15:19:16 -0500 |
commit | 9e40ade04c45a46f6b3d647e0bdac1a32bfaa3a9 (patch) | |
tree | 17852dd654c37bf86cf3d98c692eef4c6fa73a2c /include | |
parent | 7cc718d56c8297bd3a3c106ca09e8abf9814bb27 (diff) | |
parent | 96b5a46e2a72dc1829370c87053e0cd558d58bc0 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/topology.h | 10 | ||||
-rw-r--r-- | include/asm-ia64/param.h | 10 | ||||
-rw-r--r-- | include/linux/cpuset.h | 3 |
3 files changed, 6 insertions, 17 deletions
diff --git a/include/asm-generic/topology.h b/include/asm-generic/topology.h index 5d9d70cd17fc..342a2a0105c4 100644 --- a/include/asm-generic/topology.h +++ b/include/asm-generic/topology.h | |||
@@ -30,19 +30,19 @@ | |||
30 | /* Other architectures wishing to use this simple topology API should fill | 30 | /* Other architectures wishing to use this simple topology API should fill |
31 | in the below functions as appropriate in their own <asm/topology.h> file. */ | 31 | in the below functions as appropriate in their own <asm/topology.h> file. */ |
32 | #ifndef cpu_to_node | 32 | #ifndef cpu_to_node |
33 | #define cpu_to_node(cpu) (0) | 33 | #define cpu_to_node(cpu) ((void)(cpu),0) |
34 | #endif | 34 | #endif |
35 | #ifndef parent_node | 35 | #ifndef parent_node |
36 | #define parent_node(node) (0) | 36 | #define parent_node(node) ((void)(node),0) |
37 | #endif | 37 | #endif |
38 | #ifndef node_to_cpumask | 38 | #ifndef node_to_cpumask |
39 | #define node_to_cpumask(node) (cpu_online_map) | 39 | #define node_to_cpumask(node) ((void)node, cpu_online_map) |
40 | #endif | 40 | #endif |
41 | #ifndef node_to_first_cpu | 41 | #ifndef node_to_first_cpu |
42 | #define node_to_first_cpu(node) (0) | 42 | #define node_to_first_cpu(node) ((void)(node),0) |
43 | #endif | 43 | #endif |
44 | #ifndef pcibus_to_node | 44 | #ifndef pcibus_to_node |
45 | #define pcibus_to_node(node) (-1) | 45 | #define pcibus_to_node(bus) ((void)(bus), -1) |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | #ifndef pcibus_to_cpumask | 48 | #ifndef pcibus_to_cpumask |
diff --git a/include/asm-ia64/param.h b/include/asm-ia64/param.h index 49c62dd5eccf..0964c32c1358 100644 --- a/include/asm-ia64/param.h +++ b/include/asm-ia64/param.h | |||
@@ -19,15 +19,7 @@ | |||
19 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ | 19 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ |
20 | 20 | ||
21 | #ifdef __KERNEL__ | 21 | #ifdef __KERNEL__ |
22 | # ifdef CONFIG_IA64_HP_SIM | 22 | # define HZ CONFIG_HZ |
23 | /* | ||
24 | * Yeah, simulating stuff is slow, so let us catch some breath between | ||
25 | * timer interrupts... | ||
26 | */ | ||
27 | # define HZ 32 | ||
28 | # else | ||
29 | # define HZ CONFIG_HZ | ||
30 | # endif | ||
31 | # define USER_HZ HZ | 23 | # define USER_HZ HZ |
32 | # define CLOCKS_PER_SEC HZ /* frequency at which times() counts */ | 24 | # define CLOCKS_PER_SEC HZ /* frequency at which times() counts */ |
33 | #else | 25 | #else |
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index f8c9a2752f06..0a26be353cb3 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -26,8 +26,6 @@ extern nodemask_t cpuset_mems_allowed(struct task_struct *p); | |||
26 | #define cpuset_current_mems_allowed (current->mems_allowed) | 26 | #define cpuset_current_mems_allowed (current->mems_allowed) |
27 | void cpuset_init_current_mems_allowed(void); | 27 | void cpuset_init_current_mems_allowed(void); |
28 | void cpuset_update_task_memory_state(void); | 28 | void cpuset_update_task_memory_state(void); |
29 | #define cpuset_nodes_subset_current_mems_allowed(nodes) \ | ||
30 | nodes_subset((nodes), current->mems_allowed) | ||
31 | int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl); | 29 | int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl); |
32 | 30 | ||
33 | extern int __cpuset_zone_allowed_softwall(struct zone *z, gfp_t gfp_mask); | 31 | extern int __cpuset_zone_allowed_softwall(struct zone *z, gfp_t gfp_mask); |
@@ -103,7 +101,6 @@ static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) | |||
103 | #define cpuset_current_mems_allowed (node_states[N_HIGH_MEMORY]) | 101 | #define cpuset_current_mems_allowed (node_states[N_HIGH_MEMORY]) |
104 | static inline void cpuset_init_current_mems_allowed(void) {} | 102 | static inline void cpuset_init_current_mems_allowed(void) {} |
105 | static inline void cpuset_update_task_memory_state(void) {} | 103 | static inline void cpuset_update_task_memory_state(void) {} |
106 | #define cpuset_nodes_subset_current_mems_allowed(nodes) (1) | ||
107 | 104 | ||
108 | static inline int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl) | 105 | static inline int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl) |
109 | { | 106 | { |