From 4de81848b4730f6038ef3e8932cf4edef4fc3e39 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 16 Oct 2005 00:17:33 -0700 Subject: [PATCH] --- yaml --- r: 9901 b: refs/heads/master c: 688ce17b8599abc548b406c00e4d18ae0dec954f h: refs/heads/master i: 9899: c5af920f62b2b9d154a31f399d08e9c49dfe17a3 v: v3 --- [refs] | 2 +- trunk/include/linux/cpumask.h | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index 76fb67793356..f2757c28b024 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e6850cce8f0fcb0e16b981f13cb9c69618bbdaf1 +refs/heads/master: 688ce17b8599abc548b406c00e4d18ae0dec954f diff --git a/trunk/include/linux/cpumask.h b/trunk/include/linux/cpumask.h index fe9778301d07..9bdba8169b41 100644 --- a/trunk/include/linux/cpumask.h +++ b/trunk/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 */