diff options
Diffstat (limited to 'include/linux/cpumask.h')
-rw-r--r-- | include/linux/cpumask.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 23f55140ccd5..7047f58306a7 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h | |||
@@ -218,8 +218,8 @@ int __first_cpu(const cpumask_t *srcp); | |||
218 | int __next_cpu(int n, const cpumask_t *srcp); | 218 | int __next_cpu(int n, const cpumask_t *srcp); |
219 | #define next_cpu(n, src) __next_cpu((n), &(src)) | 219 | #define next_cpu(n, src) __next_cpu((n), &(src)) |
220 | #else | 220 | #else |
221 | #define first_cpu(src) 0 | 221 | #define first_cpu(src) ({ (void)(src); 0; }) |
222 | #define next_cpu(n, src) 1 | 222 | #define next_cpu(n, src) ({ (void)(src); 1; }) |
223 | #endif | 223 | #endif |
224 | 224 | ||
225 | #define cpumask_of_cpu(cpu) \ | 225 | #define cpumask_of_cpu(cpu) \ |
@@ -397,6 +397,8 @@ extern cpumask_t cpu_present_map; | |||
397 | #define cpu_present(cpu) ((cpu) == 0) | 397 | #define cpu_present(cpu) ((cpu) == 0) |
398 | #endif | 398 | #endif |
399 | 399 | ||
400 | #define cpu_is_offline(cpu) unlikely(!cpu_online(cpu)) | ||
401 | |||
400 | #ifdef CONFIG_SMP | 402 | #ifdef CONFIG_SMP |
401 | extern int nr_cpu_ids; | 403 | extern int nr_cpu_ids; |
402 | #define any_online_cpu(mask) __any_online_cpu(&(mask)) | 404 | #define any_online_cpu(mask) __any_online_cpu(&(mask)) |