diff options
author | Borislav Petkov <bbpetkov@yahoo.de> | 2007-12-16 18:30:22 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-01 18:30:58 -0500 |
commit | 17b7a89cfb6ea2ff103785f9b2580e5138b6cfd1 (patch) | |
tree | 14e58e5b00c4c2f53124bc8f3ee38ef7b89eefe6 /arch | |
parent | b28f508112c584cdfbb4d8a9489cc4b79dac68ee (diff) |
Suspend: Clean up suspend_64.c
There's a freakishly long comment in suspend_64.c, shorten it.
Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/suspend_64.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/kernel/suspend_64.c b/arch/x86/kernel/suspend_64.c index 09199511c256..7ac7130022f1 100644 --- a/arch/x86/kernel/suspend_64.c +++ b/arch/x86/kernel/suspend_64.c | |||
@@ -140,7 +140,12 @@ static void fix_processor_context(void) | |||
140 | int cpu = smp_processor_id(); | 140 | int cpu = smp_processor_id(); |
141 | struct tss_struct *t = &per_cpu(init_tss, cpu); | 141 | struct tss_struct *t = &per_cpu(init_tss, cpu); |
142 | 142 | ||
143 | set_tss_desc(cpu,t); /* This just modifies memory; should not be necessary. But... This is necessary, because 386 hardware has concept of busy TSS or some similar stupidity. */ | 143 | /* |
144 | * This just modifies memory; should not be necessary. But... This | ||
145 | * is necessary, because 386 hardware has concept of busy TSS or some | ||
146 | * similar stupidity. | ||
147 | */ | ||
148 | set_tss_desc(cpu, t); | ||
144 | 149 | ||
145 | get_cpu_gdt_table(cpu)[GDT_ENTRY_TSS].type = 9; | 150 | get_cpu_gdt_table(cpu)[GDT_ENTRY_TSS].type = 9; |
146 | 151 | ||
@@ -160,7 +165,6 @@ static void fix_processor_context(void) | |||
160 | loaddebug(¤t->thread, 6); | 165 | loaddebug(¤t->thread, 6); |
161 | loaddebug(¤t->thread, 7); | 166 | loaddebug(¤t->thread, 7); |
162 | } | 167 | } |
163 | |||
164 | } | 168 | } |
165 | 169 | ||
166 | #ifdef CONFIG_HIBERNATION | 170 | #ifdef CONFIG_HIBERNATION |