Removal of dead code from arch/blackfin/kernel/traps.c
A message that is not in the archive (sent off-list or not yet received): [email protected]
RFC PATCH 1/8 Removal of dead code from arch/blackfin/kernel/traps.c
commit de6f2dfdf5c3dcd0e5eeaf9ab690a5d1081c065c
Author: N.P.S <[email protected]> Date: Fri Oct 22 00:01:41 2010 +0200
Removal of dead code from
arch/blackfin/kernel/traps.c
arch/blackfin/kernel/traps.c +0 -10
@@ -280,17 +280,7 @@ asmlinkage notrace void trap_c(struct pt_regs *fp) goto traps_done; else break; -#ifdef CONFIG_BF535 -/* 0x29 - Instruction fetch access error (535 only) */ -case VEC_ISTRU_VL :/* ADSP-BF535 only (MH) */ - info.si_code =BUS_OPFETCH ; - sig =SIGBUS ; - strerror =KERN_NOTICE "BF535: VEC_ISTRU_VL\n" ; -CHK_DEBUGGER_TRAP_MAYBE (); -break ; -#else /* 0x29 - Reserved, Caught by default */ -#endif /* 0x2A - Instruction fetch misaligned, handled here */ case VEC_MISALI_I : info.si_code =BUS_ADRALN ;
NAK ... i find having this hint useful
-mike
2010/10/22 Mike Frysinger <[email protected]>:
Quoted 3 lines
NAK ... i find having this hint useful
-mike
Ok, thanks for your comments.
Kind regards,
Zimny
Signature · 7 lines
Slawa! N.P.S. Les fleurs du mal unfold Comme les fleurs du mal Dark demons of my soul Un amour fatal
RFC PATCH 2/8 Removal of dead code from arch/blackfin/kernel/ipipe.c
In reply to a message not in the archivecommit 80cbf2ee3a33740641929f23bf9a7d264a2986b4
Author: N.P.S <[email protected]> Date: Thu Oct 21 23:57:05 2010 +0200
Removal of dead code from
arch/blackfin/kernel/ipipe.c
arch/blackfin/kernel/ipipe.c +0 -7
@@ -272,13 +272,6 @@ int ipipe_trigger_irq(unsigned irq) {unsigned long flags; -#ifdef CONFIG_IPIPE_DEBUG -if (irq >=IPIPE_NR_IRQS || - (ipipe_virtual_irq_p (irq) - && !test_bit (irq -IPIPE_VIRQ_BASE , &__ipipe_virtual_irq_map))) -return -EINVAL ; -#endif -local_irq_save_hw (flags);__ipipe_handle_irq (irq,NULL );local_irq_restore_hw (flags);
Re: [RFC][PATCH 2/8] Removal of dead code from arch/blackfin/kernel/ipipe.c
NAK ... this is for xenomai
-mike
RFC PATCH 3/8 Removal of dead code from arch/blackfin/include/asm/irqflags.h
In reply to a message not in the archivecommit 12282e20f3cb7757bfe333cac43174751453c15b
Author: N.P.S <[email protected]> Date: Thu Oct 21 23:53:26 2010 +0200
Removal of dead code from
arch/blackfin/include/asm/irqflags.h
arch/blackfin/include/asm/irqflags.h +0 -32
@@ -137,42 +137,10 @@ static inline void local_irq_restore_hw_notrace(unsigned long flags) local_irq_enable_hw_notrace(); } -#ifdef CONFIG_IPIPE_TRACE_IRQSOFF -# define local_irq_disable_hw () \ - do { \ - if (!irqs_disabled_hw()) { \ - local_irq_disable_hw_notrace(); \ - ipipe_trace_begin(0x80000000); \ - } \ - } while (0) -# define local_irq_enable_hw () \ - do { \ - if (irqs_disabled_hw()) { \ - ipipe_trace_end(0x80000000); \ - local_irq_enable_hw_notrace(); \ - } \ - } while (0) -# define local_irq_save_hw (flags) \ - do { \ - local_save_flags_hw(flags); \ - if (!irqs_disabled_flags_hw(flags)) { \ - local_irq_disable_hw_notrace(); \ - ipipe_trace_begin(0x80000001); \ - } \ - } while (0) -# define local_irq_restore_hw (flags) \ - do { \ - if (!irqs_disabled_flags_hw(flags)) { \ - ipipe_trace_end(0x80000001); \ - local_irq_enable_hw_notrace(); \ - } \ - } while (0) -#else /* !CONFIG_IPIPE_TRACE_IRQSOFF */ # define local_irq_disable_hw () local_irq_disable_hw_notrace()# define local_irq_enable_hw () local_irq_enable_hw_notrace()# define local_irq_save_hw (flags) local_irq_save_hw_notrace(flags)# define local_irq_restore_hw (flags) local_irq_restore_hw_notrace(flags) -#endif /* !CONFIG_IPIPE_TRACE_IRQSOFF */ #else /* CONFIG_IPIPE */
Re: [RFC][PATCH 3/8] Removal of dead code from arch/blackfin/include/asm/irqflags.h
NAK ... this is for xenomai
-mike
Re: [RFC][PATCH 3/8] Removal of dead code from arch/blackfin/include/asm/irqflags.h
2010/10/22 Mike Frysinger <[email protected]>:
Quoted 3 lines
NAK ... this is for xenomai
-mike
Ok, thanks for your comment.
BTW. I can not find *IPIPE_TRACE* is it automatically generated somewhere?
Kind regards,
Zimny
Signature · 7 lines
Slawa! N.P.S. Les fleurs du mal unfold Comme les fleurs du mal Dark demons of my soul Un amour fatal
Re: [RFC][PATCH 3/8] Removal of dead code from arch/blackfin/include/asm/irqflags.h
Quoted 6 lines · Zimny Lech
2010/10/22 Mike Frysinger:
Quoted 1 line
NAK ... this is for xenomai
Ok, thanks for your comment.
BTW. I can not find *IPIPE_TRACE* is it automatically generated somewhere?
negative. we're just friendly with the xenomai peeps. -mike
RFC PATCH 4/8 Removal of dead code from arch/m68knommu/kernel/setup.c
In reply to a message not in the archivecommit ff74ba3dc19fa616a87803af756911d4997fcd76
Author: N.P.S <[email protected]> Date: Thu Oct 21 23:46:01 2010 +0200
Removal of dead code from
arch/m68knommu/kernel/setup.c
arch/m68knommu/kernel/setup.c +0 -3
@@ -54,9 +54,6 @@ void (*mach_reset)(void);void (*mach_halt)(void );void (*mach_power_off)(void ); -#ifdef CONFIG_M68000 -#define CPU "MC68000" -#endif #ifdef CONFIG_M68328 #define CPU "MC68328"#endif
RFC PATCH 5/8 Removal of dead code from arch/m68knommu/platform/68VZ328/config.c
In reply to a message not in the archivecommit 5fef858951eaa6d10a219e7a8abad01810694af4
Author: N.P.S <[email protected]> Date: Thu Oct 21 23:41:16 2010 +0200
Removal of dead code from
arch/m68knommu/platform/68VZ328/config.c
drivers/serial/68328serial.h
arch/m68knommu/platform/68VZ328/config.c +0 -5
@@ -90,11 +90,6 @@ static void init_hardware(char *command, int size)PDIQEG &= ~PD (1 );PDIRQEN |=PD (1 );/* IRQ enabled */ -#ifdef CONFIG_68328_SERIAL_UART2 -/* Enable RXD TXD port bits to enable UART2 */ -PJSEL &= ~(PJ (5 ) |PJ (4 )); -#endif -#ifdef CONFIG_INIT_LCD /* initialize LCD controller */ LSSA = (long ) screen_bits;
drivers/serial/68328serial.h +0 -5
@@ -181,13 +181,8 @@ struct m68k_serial {/* * Define the number of ports supported and their irqs. */ -#ifndef CONFIG_68328_SERIAL_UART2 -#define NR_PORTS 1 -#define UART_IRQ_DEFNS {UART_IRQ_NUM} -#else #define NR_PORTS 2#define UART_IRQ_DEFNS {UART1_IRQ_NUM, UART2_IRQ_NUM} -#endif #endif /* __KERNEL__ */ #endif /* !(_MC683XX_SERIAL_H) */
RFC PATCH 6/8 Removal of dead code from arch/powerpc/kernel/process.c
In reply to a message not in the archivecommit 12747993cb2b4a07df7a62f247f20aa4a6263cd9
Author: N.P.S <[email protected]> Date: Thu Oct 21 23:36:00 2010 +0200
Removal of dead code from
arch/powerpc/kernel/process.c
arch/powerpc/kernel/process.c +0 -5
@@ -670,12 +670,7 @@ void exit_thread(void)void flush_thread (void ) {discard_lazy_cpu_state (); - -#ifdef CONFIG_HAVE_HW_BREAKPOINTS -flush_ptrace_hw_breakpoint (current); -#else /* CONFIG_HAVE_HW_BREAKPOINTS */ set_debug_reg_defaults (¤t->thread); -#endif /* CONFIG_HAVE_HW_BREAKPOINTS */ }void
RFC PATCH 7/8 Removal of dead code from arch/powerpc/mm/tlb_low_64e.S and arch/powerpc/include/asm/exception-64e.h
In reply to a message not in the archivecommit bca5655fdfd3ad0a4891914bd88b28f78e5cec16
Author: N.P.S <[email protected]> Date: Thu Oct 21 23:26:48 2010 +0200
Removal of dead code from
arch/powerpc/mm/tlb_low_64e.S
arch/powerpc/include/asm/exception-64e.h
arch/powerpc/include/asm/exception-64e.h +0 -38
@@ -65,14 +65,7 @@#define EX_TLB_MMUCR0 (12 * 8)/* Level 0 */ #define EX_TLB_MAS1 (12 * 8)/* Level 0 */ #define EX_TLB_MAS2 (13 * 8)/* Level 0 */ -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS -#define EX_TLB_R8 (14 * 8) -#define EX_TLB_R9 (15 * 8) -#define EX_TLB_LR (16 * 8) -#define EX_TLB_SIZE (17 * 8) -#else #define EX_TLB_SIZE (14 * 8) -#endif #define START_EXCEPTION (label) \ .globl exc_##label##_book3e; \
@@ -157,36 +150,6 @@ exc_##label##_book3e:addi r11,r13,PACA_EXTLB ; \ TLB_MISS_RESTORE(r11) -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS -#define TLB_MISS_PROLOG_STATS \ - mflr r10; \ - std r8,EX_TLB_R8(r12); \ - std r9,EX_TLB_R9(r12); \ - std r10,EX_TLB_LR(r12); -#define TLB_MISS_RESTORE_STATS \ - ld r16,EX_TLB_LR(r12); \ - ld r9,EX_TLB_R9(r12); \ - ld r8,EX_TLB_R8(r12); \ - mtlr r16; -#define TLB_MISS_STATS_D (name) \ - addi r9,r13,MMSTAT_DSTATS+name; \ - bl .tlb_stat_inc; -#define TLB_MISS_STATS_I (name) \ - addi r9,r13,MMSTAT_ISTATS+name; \ - bl .tlb_stat_inc; -#define TLB_MISS_STATS_X (name) \ - ld r8,PACA_EXTLB+EX_TLB_ESR(r13); \ - cmpdi cr2,r8,-1; \ - beq cr2,61f; \ - addi r9,r13,MMSTAT_DSTATS+name; \ - b 62f; \ -61: addi r9,r13,MMSTAT_ISTATS+name; \ -62: bl .tlb_stat_inc; -#define TLB_MISS_STATS_SAVE_INFO \ - std r14,EX_TLB_ESR(r12);/* save ESR */ \ - - -#else #define TLB_MISS_PROLOG_STATS #define TLB_MISS_RESTORE_STATS #define TLB_MISS_STATS_D (name)
@@ -194,7 +157,6 @@ exc_##label##_book3e:#define TLB_MISS_STATS_X (name)#define TLB_MISS_STATS_Y (name)#define TLB_MISS_STATS_SAVE_INFO -#endif #define SET_IVOR (vector_number, vector_offset) \ li r3,vector_offset@l; \
arch/powerpc/mm/tlb_low_64e.S +0 -10
@@ -757,13 +757,3 @@ tlb_load_linear_fault: b exc_data_storage_book3e 1: TLB_MISS_EPILOG_ERROR_SPECIAL b exc_instruction_storage_book3e - - -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS -.tlb_stat_inc: -1: ldarx r8,0,r9 - addi r8,r8,1 - stdcx. r8,0,r9 - bne- 1b - blr -#endif
RFC PATCH 8/8 Removal of dead code from arch/h8300/kernel/time.c
In reply to a message not in the archivecommit df836d3ba767abc31e96ba95db318f4d023d9023
Author: N.P.S <[email protected]> Date: Thu Oct 21 23:11:58 2010 +0200
Removal of dead code from arch/h8300/kernel/time.c
arch/h8300/kernel/time.c +0 -3
@@ -51,9 +51,6 @@ void read_persistent_clock(struct timespec *ts) year =1980 ; mon = day =1 ; hour = min = sec =0 ; -#ifdef CONFIG_H8300_GETTOD -h8300_gettod (&year, &mon, &day, &hour, &min, &sec); -#endif if ((year +=1900 ) <1970 ) year +=100 ; ts->tv_sec =mktime (year, mon, day, hour, min, sec);