|
@@ -444,14 +444,16 @@ static inline void nmi_nesting_preprocess(struct pt_regs *regs)
|
|
*/
|
|
*/
|
|
if (unlikely(is_debug_stack(regs->sp))) {
|
|
if (unlikely(is_debug_stack(regs->sp))) {
|
|
debug_stack_set_zero();
|
|
debug_stack_set_zero();
|
|
- __get_cpu_var(update_debug_stack) = 1;
|
|
|
|
|
|
+ this_cpu_write(update_debug_stack, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
static inline void nmi_nesting_postprocess(void)
|
|
static inline void nmi_nesting_postprocess(void)
|
|
{
|
|
{
|
|
- if (unlikely(__get_cpu_var(update_debug_stack)))
|
|
|
|
|
|
+ if (unlikely(this_cpu_read(update_debug_stack))) {
|
|
debug_stack_reset();
|
|
debug_stack_reset();
|
|
|
|
+ this_cpu_write(update_debug_stack, 0);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|