~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/linux/smp.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
                smp_call_func_t func, void *info, bool wait,
50
50
                gfp_t gfp_flags);
51
51
 
 
52
void __smp_call_function_single(int cpuid, struct call_single_data *data,
 
53
                                int wait);
 
54
 
52
55
#ifdef CONFIG_SMP
53
56
 
54
57
#include <linux/preempt.h>
95
98
void smp_call_function_many(const struct cpumask *mask,
96
99
                            smp_call_func_t func, void *info, bool wait);
97
100
 
98
 
void __smp_call_function_single(int cpuid, struct call_single_data *data,
99
 
                                int wait);
100
 
 
101
101
int smp_call_function_any(const struct cpumask *mask,
102
102
                          smp_call_func_t func, void *info, int wait);
103
103
 
106
106
/*
107
107
 * Generic and arch helpers
108
108
 */
109
 
#ifdef CONFIG_USE_GENERIC_SMP_HELPERS
110
109
void __init call_function_init(void);
111
110
void generic_smp_call_function_single_interrupt(void);
112
111
#define generic_smp_call_function_interrupt \
113
112
        generic_smp_call_function_single_interrupt
114
 
#else
115
 
static inline void call_function_init(void) { }
116
 
#endif
117
113
 
118
114
/*
119
115
 * Mark the boot cpu "online" so that it can call console drivers in
155
151
 
156
152
static inline void kick_all_cpus_sync(void) {  }
157
153
 
158
 
static inline void __smp_call_function_single(int cpuid,
159
 
                struct call_single_data *data, int wait)
160
 
{
161
 
        on_each_cpu(data->func, data->info, wait);
162
 
}
163
 
 
164
154
#endif /* !SMP */
165
155
 
166
156
/*