diff options
Diffstat (limited to 'include/linux/workqueue.h')
| -rw-r--r-- | include/linux/workqueue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index bde063cefd04..c102ef65cb64 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
| @@ -608,8 +608,13 @@ static inline long work_on_cpu(int cpu, long (*fn)(void *), void *arg) | |||
| 608 | { | 608 | { |
| 609 | return fn(arg); | 609 | return fn(arg); |
| 610 | } | 610 | } |
| 611 | static inline long work_on_cpu_safe(int cpu, long (*fn)(void *), void *arg) | ||
| 612 | { | ||
| 613 | return fn(arg); | ||
| 614 | } | ||
| 611 | #else | 615 | #else |
| 612 | long work_on_cpu(int cpu, long (*fn)(void *), void *arg); | 616 | long work_on_cpu(int cpu, long (*fn)(void *), void *arg); |
| 617 | long work_on_cpu_safe(int cpu, long (*fn)(void *), void *arg); | ||
| 613 | #endif /* CONFIG_SMP */ | 618 | #endif /* CONFIG_SMP */ |
| 614 | 619 | ||
| 615 | #ifdef CONFIG_FREEZER | 620 | #ifdef CONFIG_FREEZER |
