diff options
Diffstat (limited to 'arch/x86/kernel/paravirt.c')
-rw-r--r-- | arch/x86/kernel/paravirt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index 63dd358d8ee1..8ab250ac498b 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c | |||
@@ -282,6 +282,9 @@ void paravirt_leave_lazy_cpu(void) | |||
282 | 282 | ||
283 | enum paravirt_lazy_mode paravirt_get_lazy_mode(void) | 283 | enum paravirt_lazy_mode paravirt_get_lazy_mode(void) |
284 | { | 284 | { |
285 | if (in_interrupt()) | ||
286 | return PARAVIRT_LAZY_NONE; | ||
287 | |||
285 | return __get_cpu_var(paravirt_lazy_mode); | 288 | return __get_cpu_var(paravirt_lazy_mode); |
286 | } | 289 | } |
287 | 290 | ||