diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:30:59 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:59 -0500 |
commit | 0f5340933f9bacb403f49baaf8073320e3984841 (patch) | |
tree | d142192f7194c75b8ea6e4eaff0e33fbcf860c6c /arch/x86/power | |
parent | d277fb89dfb042deba04a8e765718cc8b3825e85 (diff) |
x86: x86-32 thread_struct.debugreg
This replaces the debugreg[7] member of thread_struct with individual
members debugreg0, etc. This saves two words for the dummies 4 and 5,
and harmonizes the code between 32 and 64.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/power')
-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 | } |