diff options
Diffstat (limited to 'arch/arm/oprofile')
-rw-r--r-- | arch/arm/oprofile/op_model_mpcore.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/oprofile/op_model_mpcore.c b/arch/arm/oprofile/op_model_mpcore.c index 7791da791f5f..75bae067922d 100644 --- a/arch/arm/oprofile/op_model_mpcore.c +++ b/arch/arm/oprofile/op_model_mpcore.c | |||
@@ -200,8 +200,10 @@ static int em_call_function(int (*fn)(void)) | |||
200 | data.fn = fn; | 200 | data.fn = fn; |
201 | data.ret = 0; | 201 | data.ret = 0; |
202 | 202 | ||
203 | preempt_disable(); | ||
203 | smp_call_function(em_func, &data, 1, 1); | 204 | smp_call_function(em_func, &data, 1, 1); |
204 | em_func(&data); | 205 | em_func(&data); |
206 | preempt_enable(); | ||
205 | 207 | ||
206 | return data.ret; | 208 | return data.ret; |
207 | } | 209 | } |