Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377112
b: refs/heads/master
c: f21afc2
h: refs/heads/master
v: v3
  • Loading branch information
David Daney authored and Linus Torvalds committed Jun 15, 2013
1 parent 0ef9454 commit 13d62f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 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: d0ff9348810c5bc9fc7a3f022bdfae9b44b62f00
refs/heads/master: f21afc25f9ed45b8ffe200d0f071b0caec3ed2ef
19 changes: 12 additions & 7 deletions trunk/include/linux/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/list.h>
#include <linux/cpumask.h>
#include <linux/init.h>
#include <linux/irqflags.h>

extern void cpu_idle(void);

Expand Down Expand Up @@ -139,13 +140,17 @@ static inline int up_smp_call_function(smp_call_func_t func, void *info)
}
#define smp_call_function(func, info, wait) \
(up_smp_call_function(func, info))
#define on_each_cpu(func,info,wait) \
({ \
local_irq_disable(); \
func(info); \
local_irq_enable(); \
0; \
})

static inline int on_each_cpu(smp_call_func_t func, void *info, int wait)
{
unsigned long flags;

local_irq_save(flags);
func(info);
local_irq_restore(flags);
return 0;
}

/*
* Note we still need to test the mask even for UP
* because we actually can get an empty mask from
Expand Down

0 comments on commit 13d62f1

Please sign in to comment.