]> git.hungrycats.org Git - linux/commitdiff
[PATCH] i386-unbusy-tss cleanup
authorZachary Amsden <zach@vmware.com>
Tue, 24 Aug 2004 04:42:46 +0000 (21:42 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:42:46 +0000 (21:42 -0700)
The TSS no longer needs to be unbusied before loading the task register, since
the set_tss_desc macros set the system gate type to Available IA-32 TSS.  This
obscure, uncommented legacy code can now be removed for better readability and
saves 20 bytes of code space.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/cpu/common.c

index 428800f11afc7a812986d2c3900fb9b91de7a49b..89dc79a655059d49f69c781c2d5a16d2eb89aced 100644 (file)
@@ -559,13 +559,11 @@ void __init cpu_init (void)
 
        load_esp0(t, thread);
        set_tss_desc(cpu,t);
-       per_cpu(cpu_gdt_table,cpu)[GDT_ENTRY_TSS].b &= 0xfffffdff;
        load_TR_desc();
        load_LDT(&init_mm.context);
 
        /* Set up doublefault TSS pointer in the GDT */
        __set_tss_desc(cpu, GDT_ENTRY_DOUBLEFAULT_TSS, &doublefault_tss);
-       per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_DOUBLEFAULT_TSS].b &= 0xfffffdff;
 
        /* Clear %fs and %gs. */
        asm volatile ("xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs");