Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17b7a89c authored by Borislav Petkov's avatar Borislav Petkov Committed by Len Brown
Browse files

Suspend: Clean up suspend_64.c



There's a freakishly long comment in suspend_64.c, shorten it.

Signed-off-by: default avatarBorislav Petkov <bbpetkov@yahoo.de>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent b28f5081
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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;

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

}

#ifdef CONFIG_HIBERNATION