diff options
Diffstat (limited to 'arch/x86/power/cpu.c')
-rw-r--r-- | arch/x86/power/cpu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/power/cpu.c b/arch/x86/power/cpu.c index 998fd3ec0d68..5a98dc35addf 100644 --- a/arch/x86/power/cpu.c +++ b/arch/x86/power/cpu.c | |||
@@ -74,14 +74,14 @@ static void fix_processor_context(void) | |||
74 | /* | 74 | /* |
75 | * Now maybe reload the debug registers | 75 | * Now maybe reload the debug registers |
76 | */ | 76 | */ |
77 | if (current->thread.debugreg[7]){ | 77 | if (current->thread.debugreg7) { |
78 | set_debugreg(current->thread.debugreg[0], 0); | 78 | set_debugreg(current->thread.debugreg0, 0); |
79 | set_debugreg(current->thread.debugreg[1], 1); | 79 | set_debugreg(current->thread.debugreg1, 1); |
80 | set_debugreg(current->thread.debugreg[2], 2); | 80 | set_debugreg(current->thread.debugreg2, 2); |
81 | set_debugreg(current->thread.debugreg[3], 3); | 81 | set_debugreg(current->thread.debugreg3, 3); |
82 | /* no 4 and 5 */ | 82 | /* no 4 and 5 */ |
83 | set_debugreg(current->thread.debugreg[6], 6); | 83 | set_debugreg(current->thread.debugreg6, 6); |
84 | set_debugreg(current->thread.debugreg[7], 7); | 84 | set_debugreg(current->thread.debugreg7, 7); |
85 | } | 85 | } |
86 | 86 | ||
87 | } | 87 | } |