Skip to content

Commit

Permalink
Suspend: Clean up suspend_64.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov authored and Len Brown committed Feb 1, 2008
1 parent b28f508 commit 17b7a89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/x86/kernel/suspend_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ static void fix_processor_context(void)
int cpu = smp_processor_id();
struct tss_struct *t = &per_cpu(init_tss, cpu);

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. */
/*
* This just modifies memory; should not be necessary. But... This
* is necessary, because 386 hardware has concept of busy TSS or some
* similar stupidity.
*/
set_tss_desc(cpu, t);

get_cpu_gdt_table(cpu)[GDT_ENTRY_TSS].type = 9;

Expand All @@ -160,7 +165,6 @@ static void fix_processor_context(void)
loaddebug(&current->thread, 6);
loaddebug(&current->thread, 7);
}

}

#ifdef CONFIG_HIBERNATION
Expand Down

0 comments on commit 17b7a89

Please sign in to comment.