diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-09 15:20:56 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-09 15:20:56 -0500 |
| commit | cb56d98e2a7530615899597551db685d68a2e852 (patch) | |
| tree | 458a2dc64385f35799c55971ea7b3fe1a2ec218f /include/linux/workqueue.h | |
| parent | 6209344f5a3795d34b7f2c0061f49802283b6bdd (diff) | |
| parent | 984f2f377fdfd098f5ae58d09ee04d5e29e6112b (diff) | |
Merge branch 'cpus4096' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'cpus4096' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
cpumask: introduce new API, without changing anything, v3
cpumask: new API, v2
cpumask: introduce new API, without changing anything
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 |
