diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-18 17:14:17 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-18 17:14:17 -0400 |
commit | 28af493cd7b89cba7e3ee534079cf4f41bb4b4f9 (patch) | |
tree | ea27df5ab7b728496a15602e0a7da74ff188378f /include/linux/cpumask.h | |
parent | 74cfe03f80adc320bde4dd37616354aefe2271aa (diff) | |
parent | 39ca371c45b04cd50d0974030ae051906fc516b6 (diff) | |
download | op-kernel-dev-28af493cd7b89cba7e3ee534079cf4f41bb4b4f9.zip op-kernel-dev-28af493cd7b89cba7e3ee534079cf4f41bb4b4f9.tar.gz |
Merge branch 'master'
Diffstat (limited to 'include/linux/cpumask.h')
-rw-r--r-- | include/linux/cpumask.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index fe97783..9bdba81 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -393,15 +393,13 @@ extern cpumask_t cpu_present_map; #define for_each_present_cpu(cpu) for_each_cpu_mask((cpu), cpu_present_map) /* Find the highest possible smp_processor_id() */ -static inline unsigned int highest_possible_processor_id(void) -{ - unsigned int cpu, highest = 0; - - for_each_cpu_mask(cpu, cpu_possible_map) - highest = cpu; - - return highest; -} +#define highest_possible_processor_id() \ +({ \ + unsigned int cpu, highest = 0; \ + for_each_cpu_mask(cpu, cpu_possible_map) \ + highest = cpu; \ + highest; \ +}) #endif /* __LINUX_CPUMASK_H */ |