Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9901
b: refs/heads/master
c: 688ce17
h: refs/heads/master
i:
  9899: c5af920
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Oct 16, 2005
1 parent 3cb1e09 commit 4de8184
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6850cce8f0fcb0e16b981f13cb9c69618bbdaf1
refs/heads/master: 688ce17b8599abc548b406c00e4d18ae0dec954f
16 changes: 7 additions & 9 deletions trunk/include/linux/cpumask.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 4de8184

Please sign in to comment.