ppc32: Fix smp_message_pass macro, turn into an inline function

parent 8354cc74
...@@ -79,11 +79,14 @@ extern void __save_cpu_setup(void); ...@@ -79,11 +79,14 @@ extern void __save_cpu_setup(void);
#define PPC_MSG_INVALIDATE_TLB 2 #define PPC_MSG_INVALIDATE_TLB 2
#define PPC_MSG_XMON_BREAK 3 #define PPC_MSG_XMON_BREAK 3
#define smp_message_pass(t,m,d,w) \ static inline void
do { if (smp_ops) \ smp_message_pass(int target, int msg, unsigned long data, int wait)
atomic_inc(&ipi_sent); \ {
smp_ops->message_pass((t),(m),(d),(w)); \ if (smp_ops){
} while(0) atomic_inc(&ipi_sent);
smp_ops->message_pass(target,msg,data,wait);
}
}
/* /*
* Common functions * Common functions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment