linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86-64: eliminate dead code
@ 2007-12-13  9:07 Jan Beulich
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2007-12-13  9:07 UTC (permalink / raw)
  To: tglx, mingo, hpa; +Cc: linux-kernel

Signed-off-by: Jan Beulich <jbeulich@novell.com>

 arch/x86/kernel/entry_64.S |    4 ----
 arch/x86/kernel/traps_64.c |    3 ---
 2 files changed, 7 deletions(-)

--- linux-2.6.24-rc5/arch/x86/kernel/entry_64.S	2007-12-12 16:48:17.000000000 +0100
+++ 2.6.24-rc5-x86_64-dead-code/arch/x86/kernel/entry_64.S	2007-12-04 16:09:33.000000000 +0100
@@ -1087,10 +1087,6 @@ ENTRY(coprocessor_segment_overrun)
 	zeroentry do_coprocessor_segment_overrun
 END(coprocessor_segment_overrun)
 
-ENTRY(reserved)
-	zeroentry do_reserved
-END(reserved)
-
 	/* runs on exception stack */
 ENTRY(double_fault)
 	XCPT_FRAME
--- linux-2.6.24-rc5/arch/x86/kernel/traps_64.c	2007-12-12 16:48:17.000000000 +0100
+++ 2.6.24-rc5-x86_64-dead-code/arch/x86/kernel/traps_64.c	2007-12-04 16:09:33.000000000 +0100
@@ -69,7 +69,6 @@ asmlinkage void general_protection(void)
 asmlinkage void page_fault(void);
 asmlinkage void coprocessor_error(void);
 asmlinkage void simd_coprocessor_error(void);
-asmlinkage void reserved(void);
 asmlinkage void alignment_check(void);
 asmlinkage void machine_check(void);
 asmlinkage void spurious_interrupt_bug(void);
@@ -646,12 +645,10 @@ DO_ERROR_INFO( 0, SIGFPE,  "divide error
 DO_ERROR( 4, SIGSEGV, "overflow", overflow)
 DO_ERROR( 5, SIGSEGV, "bounds", bounds)
 DO_ERROR_INFO( 6, SIGILL,  "invalid opcode", invalid_op, ILL_ILLOPN, regs->rip)
-DO_ERROR( 7, SIGSEGV, "device not available", device_not_available)
 DO_ERROR( 9, SIGFPE,  "coprocessor segment overrun", coprocessor_segment_overrun)
 DO_ERROR(10, SIGSEGV, "invalid TSS", invalid_TSS)
 DO_ERROR(11, SIGBUS,  "segment not present", segment_not_present)
 DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, 0)
-DO_ERROR(18, SIGSEGV, "reserved", reserved)
 
 /* Runs on IST stack */
 asmlinkage void do_stack_segment(struct pt_regs *regs, long error_code)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86-64: eliminate dead code
  2008-08-29 12:15 Jan Beulich
@ 2008-09-06 17:51 ` Ingo Molnar
  0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-09-06 17:51 UTC (permalink / raw)
  To: Jan Beulich; +Cc: tglx, hpa, linux-kernel


* Jan Beulich <jbeulich@novell.com> wrote:

> Signed-off-by: Jan Beulich <jbeulich@novell.com>
> 
> ---
>  include/asm-x86/mmu.h |    5 -----
>  1 file changed, 5 deletions(-)

applied to tip/x86/cleanups, thanks.

	Ingo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] x86-64: eliminate dead code
@ 2008-08-29 12:15 Jan Beulich
  2008-09-06 17:51 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2008-08-29 12:15 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

Signed-off-by: Jan Beulich <jbeulich@novell.com>

---
 include/asm-x86/mmu.h |    5 -----
 1 file changed, 5 deletions(-)

--- linux-2.6.27-rc5/include/asm-x86/mmu.h	2008-07-13 23:51:29.000000000 +0200
+++ 2.6.27-rc5-x86_64-mmu-context/include/asm-x86/mmu.h	2008-08-22 15:24:33.000000000 +0200
@@ -7,14 +7,9 @@
 /*
  * The x86 doesn't have a mmu context, but
  * we put the segment information here.
- *
- * cpu_vm_mask is used to optimize ldt flushing.
  */
 typedef struct {
 	void *ldt;
-#ifdef CONFIG_X86_64
-	rwlock_t ldtlock;
-#endif
 	int size;
 	struct mutex lock;
 	void *vdso;




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] x86-64: eliminate dead code
@ 2008-04-22 15:22 Jan Beulich
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2008-04-22 15:22 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

Signed-off-by: Jan Beulich <jbeulich@novell.com>

---
 arch/x86/kernel/entry_64.S |    4 ----
 arch/x86/kernel/traps_64.c |    3 ---
 2 files changed, 7 deletions(-)

--- linux-2.6.25/arch/x86/kernel/entry_64.S	2008-04-17 04:49:44.000000000 +0200
+++ 2.6.25-x86_64-dead-code/arch/x86/kernel/entry_64.S	2008-04-15 10:49:20.000000000 +0200
@@ -1122,10 +1122,6 @@ ENTRY(coprocessor_segment_overrun)
 	zeroentry do_coprocessor_segment_overrun
 END(coprocessor_segment_overrun)
 
-ENTRY(reserved)
-	zeroentry do_reserved
-END(reserved)
-
 	/* runs on exception stack */
 ENTRY(double_fault)
 	XCPT_FRAME
--- linux-2.6.25/arch/x86/kernel/traps_64.c	2008-04-17 04:49:44.000000000 +0200
+++ 2.6.25-x86_64-dead-code/arch/x86/kernel/traps_64.c	2008-04-15 10:49:20.000000000 +0200
@@ -69,7 +69,6 @@ asmlinkage void general_protection(void)
 asmlinkage void page_fault(void);
 asmlinkage void coprocessor_error(void);
 asmlinkage void simd_coprocessor_error(void);
-asmlinkage void reserved(void);
 asmlinkage void alignment_check(void);
 asmlinkage void machine_check(void);
 asmlinkage void spurious_interrupt_bug(void);
@@ -694,12 +693,10 @@ DO_ERROR_INFO( 0, SIGFPE,  "divide error
 DO_ERROR( 4, SIGSEGV, "overflow", overflow)
 DO_ERROR( 5, SIGSEGV, "bounds", bounds)
 DO_ERROR_INFO( 6, SIGILL,  "invalid opcode", invalid_op, ILL_ILLOPN, regs->ip)
-DO_ERROR( 7, SIGSEGV, "device not available", device_not_available)
 DO_ERROR( 9, SIGFPE,  "coprocessor segment overrun", coprocessor_segment_overrun)
 DO_ERROR(10, SIGSEGV, "invalid TSS", invalid_TSS)
 DO_ERROR(11, SIGBUS,  "segment not present", segment_not_present)
 DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, 0)
-DO_ERROR(18, SIGSEGV, "reserved", reserved)
 
 /* Runs on IST stack */
 asmlinkage void do_stack_segment(struct pt_regs *regs, long error_code)




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-06 17:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-13  9:07 [PATCH] x86-64: eliminate dead code Jan Beulich
2008-04-22 15:22 Jan Beulich
2008-08-29 12:15 Jan Beulich
2008-09-06 17:51 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).