diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-11-12 06:39:21 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-11-12 06:39:21 -0500 |
| commit | 708b8eae0fd532af73ea8350e6dcc10255ff7376 (patch) | |
| tree | f336436934fd79bc91aff7112a9beb10bc4e839f /include/linux/workqueue.h | |
| parent | d98d38f2014ab79f28c126ff175d034891f7aefc (diff) | |
| parent | f21f237cf55494c3a4209de323281a3b0528da10 (diff) | |
Merge branch 'linus' into core/locking
Diffstat (limited to 'include/linux/workqueue.h')
| -rw-r--r-- | include/linux/workqueue.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 89a5a1231ffb..b36291130f22 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
| @@ -240,4 +240,12 @@ void cancel_rearming_delayed_work(struct delayed_work *work) | |||
| 240 | cancel_delayed_work_sync(work); | 240 | cancel_delayed_work_sync(work); |
| 241 | } | 241 | } |
| 242 | 242 | ||
| 243 | #ifndef CONFIG_SMP | ||
| 244 | static inline long work_on_cpu(unsigned int cpu, long (*fn)(void *), void *arg) | ||
| 245 | { | ||
| 246 | return fn(arg); | ||
| 247 | } | ||
| 248 | #else | ||
| 249 | long work_on_cpu(unsigned int cpu, long (*fn)(void *), void *arg); | ||
| 250 | #endif /* CONFIG_SMP */ | ||
| 243 | #endif | 251 | #endif |
