Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Netlogic: Remove unused code

Remove unused functions and redundant comments from
arch/mips/include/asm/netlogic/haldefs.h

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/5029/
Acked-by: John Crispin <blogic@openwrt.org>

authored by

Jayachandran C and committed by
Ralf Baechle
033e6f28 1ad4af85

-36
-36
arch/mips/include/asm/netlogic/haldefs.h
··· 42 42 * and will provide a way to read 32/64 bit memory mapped registers in 43 43 * all ABIs 44 44 */ 45 - /* 46 - * For o32 compilation, we have to disable interrupts and enable KX bit to 47 - * access 64 bit addresses or data. 48 - * 49 - * We need to disable interrupts because we save just the lower 32 bits of 50 - * registers in interrupt handling. So if we get hit by an interrupt while 51 - * using the upper 32 bits of a register, we lose. 52 - */ 53 - static inline uint32_t nlm_save_flags_kx(void) 54 - { 55 - return change_c0_status(ST0_KX | ST0_IE, ST0_KX); 56 - } 57 - 58 - static inline uint32_t nlm_save_flags_cop2(void) 59 - { 60 - return change_c0_status(ST0_CU2 | ST0_IE, ST0_CU2); 61 - } 62 - 63 - static inline void nlm_restore_flags(uint32_t sr) 64 - { 65 - write_c0_status(sr); 66 - } 67 - 68 - /* 69 - * The n64 implementations are simple, the o32 implementations when they 70 - * are added, will have to disable interrupts and enable KX before doing 71 - * 64 bit ops. 72 - */ 73 45 static inline uint32_t 74 46 nlm_read_reg(uint64_t base, uint32_t reg) 75 47 { ··· 159 187 return nlm_io_base + devoffset; 160 188 } 161 189 162 - static inline uint64_t 163 - nlm_xkphys_map_pcibar0(uint64_t pcibase) 164 - { 165 - uint64_t paddr; 166 - 167 - paddr = nlm_read_reg(pcibase, 0x4) & ~0xfu; 168 - return (uint64_t)0x9000000000000000 | paddr; 169 - } 170 190 #elif defined(CONFIG_CPU_XLR) 171 191 172 192 static inline uint64_t