Commit d64f6036 authored by Tom Rini's avatar Tom Rini

PPC32: Audit <asm/processor.h> uses.

parent 77367a74
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include <asm/processor.h> #include <asm/reg.h>
#include <asm/cache.h> #include <asm/cache.h>
.text .text
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
#include <linux/config.h> #include <linux/config.h>
#include <asm/processor.h> #include <asm/reg.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/processor.h>
#include <asm/residual.h> #include <asm/residual.h>
#if defined(CONFIG_4xx) #if defined(CONFIG_4xx)
#include <asm/ibm4xx.h> #include <asm/ibm4xx.h>
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include <asm/processor.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/gt64260_defs.h> #include <asm/gt64260_defs.h>
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/processor.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <linux/string.h> #include <linux/string.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/processor.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#ifdef CONFIG_44x #ifdef CONFIG_44x
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
*/ */
#include <linux/config.h> #include <linux/config.h>
#include <asm/processor.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/cputable.h> #include <asm/cputable.h>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/bitops.h> #include <asm/bitops.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/processor.h>
#include <asm/residual.h> #include <asm/residual.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h>
extern void extern void
print_8xx_pte(struct mm_struct *mm, unsigned long addr); print_8xx_pte(struct mm_struct *mm, unsigned long addr);
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <asm/segment.h> #include <asm/segment.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h> #include <asm/reg.h>
#include <asm/nvram.h> #include <asm/nvram.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/8xx_immap.h> #include <asm/8xx_immap.h>
......
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
#include <asm/segment.h> #include <asm/segment.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h>
#include <asm/nvram.h> #include <asm/nvram.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/8xx_immap.h> #include <asm/8xx_immap.h>
...@@ -431,4 +430,3 @@ unsigned mulhwu_scale_factor(unsigned inscale, unsigned outscale) { ...@@ -431,4 +430,3 @@ unsigned mulhwu_scale_factor(unsigned inscale, unsigned outscale) {
if (err <= inscale/2) mlt++; if (err <= inscale/2) mlt++;
return mlt; return mlt;
} }
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h> #include <asm/reg.h>
#include <asm/xmon.h> #include <asm/xmon.h>
#ifdef CONFIG_PMAC_BACKLIGHT #ifdef CONFIG_PMAC_BACKLIGHT
#include <asm/backlight.h> #include <asm/backlight.h>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/processor.h> #include <asm/reg.h>
#include "sfp-machine.h" #include "sfp-machine.h"
#include "double.h" #include "double.h"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <asm/processor.h>
#include <asm/board.h> #include <asm/board.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/page.h> #include <asm/page.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <asm/ppc4xx_pic.h> #include <asm/ppc4xx_pic.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/pci-bridge.h> #include <asm/pci-bridge.h>
#include <asm/processor.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/time.h> #include <asm/time.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <asm/system.h> #include <asm/system.h>
#include <asm/pci-bridge.h> #include <asm/pci-bridge.h>
#include <asm/processor.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/time.h> #include <asm/time.h>
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include <linux/root_dev.h> #include <linux/root_dev.h>
#include <linux/initrd.h> #include <linux/initrd.h>
#include <asm/processor.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/prom.h> #include <asm/prom.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <asm/segment.h> #include <asm/segment.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h>
#include <asm/nvram.h> #include <asm/nvram.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/sections.h> #include <asm/sections.h>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*/ */
#include <linux/config.h> #include <linux/config.h>
#include <asm/processor.h> #include <asm/reg.h>
#include <asm/page.h> #include <asm/page.h>
#include <platforms/gemini.h> #include <platforms/gemini.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/root_dev.h> #include <linux/root_dev.h>
#include <asm/processor.h> #include <asm/reg.h>
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/system.h> #include <asm/system.h>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/pci-bridge.h> #include <asm/pci-bridge.h>
#include <asm/residual.h> #include <asm/residual.h>
#include <asm/processor.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/machdep.h> #include <asm/machdep.h>
...@@ -529,4 +528,3 @@ pplus_setup_hose(void) ...@@ -529,4 +528,3 @@ pplus_setup_hose(void)
ppc_md.pci_swizzle = common_swizzle; ppc_md.pci_swizzle = common_swizzle;
pplus_set_board_type(); pplus_set_board_type();
} }
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/processor.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/residual.h> #include <asm/residual.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pci-bridge.h> #include <asm/pci-bridge.h>
#include <asm/residual.h> #include <asm/residual.h>
#include <asm/processor.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/open_pic.h> #include <asm/open_pic.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/segment.h> #include <asm/segment.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/prep_nvram.h> #include <asm/prep_nvram.h>
#include <asm/mk48t59.h> #include <asm/mk48t59.h>
......
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/processor.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/ide.h> #include <asm/ide.h>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h> #include <asm/reg.h>
#define NO_SCROLL #define NO_SCROLL
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <linux/irq.h> #include <linux/irq.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/irq.h> #include <asm/irq.h>
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include <linux/irq.h> #include <linux/irq.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/gt64260.h> #include <asm/gt64260.h>
...@@ -240,4 +239,3 @@ gt64260_mask_irq(unsigned int irq) ...@@ -240,4 +239,3 @@ gt64260_mask_irq(unsigned int irq)
udelay(1); udelay(1);
} }
} }
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/processor.h>
#include <asm/residual.h> #include <asm/residual.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
...@@ -260,4 +259,3 @@ m8260_init(unsigned long r3, unsigned long r4, unsigned long r5, ...@@ -260,4 +259,3 @@ m8260_init(unsigned long r3, unsigned long r4, unsigned long r5,
ppc_md.find_end_of_memory = m8260_find_end_of_memory; ppc_md.find_end_of_memory = m8260_find_end_of_memory;
ppc_md.setup_io_mappings = m8260_map_io; ppc_md.setup_io_mappings = m8260_map_io;
} }
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include <linux/root_dev.h> #include <linux/root_dev.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/processor.h> #include <asm/reg.h>
#include <asm/residual.h> #include <asm/residual.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
...@@ -221,9 +221,7 @@ m8xx_restart(char *cmd) ...@@ -221,9 +221,7 @@ m8xx_restart(char *cmd)
/* Clear the ME bit in MSR to cause checkstop on machine check /* Clear the ME bit in MSR to cause checkstop on machine check
*/ */
__asm__("mfmsr %0" : "=r" (msr) ); mtmsr(mfmsr(msr) & ~0x1000);
msr &= ~0x1000;
__asm__("mtmsr %0" : : "r" (msr) );
dummy = ((immap_t *)IMAP_ADDR)->im_clkrst.res[0]; dummy = ((immap_t *)IMAP_ADDR)->im_clkrst.res[0];
printk("Restart failed\n"); printk("Restart failed\n");
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/segment.h> #include <asm/segment.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/prep_nvram.h> #include <asm/prep_nvram.h>
...@@ -140,6 +139,3 @@ char __prep *prep_nvram_next_var(char *name) ...@@ -140,6 +139,3 @@ char __prep *prep_nvram_next_var(char *name)
return NULL; return NULL;
} }
} }
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/processor.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/smp.h> #include <asm/smp.h>
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/page.h> #include <asm/page.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/processor.h>
#include <asm/8xx_immap.h> #include <asm/8xx_immap.h>
#include <asm/mpc8xx.h> #include <asm/mpc8xx.h>
#include <asm/commproc.h> #include <asm/commproc.h>
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#define __ARCH_PPC_CACHE_H #define __ARCH_PPC_CACHE_H
#include <linux/config.h> #include <linux/config.h>
#include <asm/processor.h>
/* bytes per L1 cache line */ /* bytes per L1 cache line */
#if defined(CONFIG_8xx) || defined(CONFIG_403GCX) #if defined(CONFIG_8xx) || defined(CONFIG_403GCX)
......
...@@ -5,15 +5,14 @@ ...@@ -5,15 +5,14 @@
#ifndef _PPC_HW_IRQ_H #ifndef _PPC_HW_IRQ_H
#define _PPC_HW_IRQ_H #define _PPC_HW_IRQ_H
#include <asm/ptrace.h>
#include <asm/reg.h>
extern void timer_interrupt(struct pt_regs *); extern void timer_interrupt(struct pt_regs *);
extern void ppc_irq_dispatch_handler(struct pt_regs *regs, int irq); extern void ppc_irq_dispatch_handler(struct pt_regs *regs, int irq);
#define INLINE_IRQS #define INLINE_IRQS
#define mfmsr() ({unsigned int rval; \
asm volatile("mfmsr %0" : "=r" (rval)); rval;})
#define mtmsr(v) asm volatile("mtmsr %0" : : "r" (v))
#define irqs_disabled() ((mfmsr() & MSR_EE) == 0) #define irqs_disabled() ((mfmsr() & MSR_EE) == 0)
#ifdef INLINE_IRQS #ifdef INLINE_IRQS
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/sched.h> #include <linux/sched.h>
#include <asm/processor.h>
#include <asm/mpc8xx.h> #include <asm/mpc8xx.h>
#ifndef MAX_HWIFS #ifndef MAX_HWIFS
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include <linux/config.h> #include <linux/config.h>
#include <linux/threads.h> #include <linux/threads.h>
#include <asm/processor.h>
extern void __bad_pte(pmd_t *pmd); extern void __bad_pte(pmd_t *pmd);
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
* This is true for PReP and CHRP at least. * This is true for PReP and CHRP at least.
*/ */
#include <asm/pc_serial.h> #include <asm/pc_serial.h>
#include <asm/processor.h>
#if defined(CONFIG_MAC_SERIAL) #if defined(CONFIG_MAC_SERIAL)
#define SERIAL_DEV_OFFSET ((_machine == _MACH_prep || _machine == _MACH_chrp) ? 0 : 2) #define SERIAL_DEV_OFFSET ((_machine == _MACH_prep || _machine == _MACH_chrp) ? 0 : 2)
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#define __ASM_SPINLOCK_H #define __ASM_SPINLOCK_H
#include <asm/system.h> #include <asm/system.h>
#include <asm/processor.h>
/* /*
* Simple spin lock operations. * Simple spin lock operations.
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <linux/config.h> #include <linux/config.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/processor.h>
#include <asm/atomic.h> #include <asm/atomic.h>
#include <asm/hw_irq.h> #include <asm/hw_irq.h>
...@@ -50,6 +49,9 @@ ...@@ -50,6 +49,9 @@
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
#ifdef __KERNEL__ #ifdef __KERNEL__
struct task_struct;
struct pt_regs;
extern void print_backtrace(unsigned long *); extern void print_backtrace(unsigned long *);
extern void show_regs(struct pt_regs * regs); extern void show_regs(struct pt_regs * regs);
extern void flush_instruction_cache(void); extern void flush_instruction_cache(void);
...@@ -83,7 +85,6 @@ extern void cacheable_memzero(void *p, unsigned int nb); ...@@ -83,7 +85,6 @@ extern void cacheable_memzero(void *p, unsigned int nb);
struct device_node; struct device_node;
extern void note_scsi_host(struct device_node *, void *); extern void note_scsi_host(struct device_node *, void *);
struct task_struct;
extern struct task_struct *__switch_to(struct task_struct *, extern struct task_struct *__switch_to(struct task_struct *,
struct task_struct *); struct task_struct *);
#define switch_to(prev, next, last) ((last) = __switch_to((prev), (next))) #define switch_to(prev, next, last) ((last) = __switch_to((prev), (next)))
...@@ -94,7 +95,6 @@ extern struct task_struct *_switch(struct thread_struct *prev, ...@@ -94,7 +95,6 @@ extern struct task_struct *_switch(struct thread_struct *prev,
extern unsigned int rtas_data; extern unsigned int rtas_data;
struct pt_regs;
extern void dump_regs(struct pt_regs *); extern void dump_regs(struct pt_regs *);
static __inline__ unsigned long static __inline__ unsigned long
......
...@@ -9,9 +9,6 @@ ...@@ -9,9 +9,6 @@
#define _ASM_THREAD_INFO_H #define _ASM_THREAD_INFO_H
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <asm/processor.h>
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
/* /*
* low level task data. * low level task data.
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <linux/mc146818rtc.h> #include <linux/mc146818rtc.h>
#include <linux/threads.h> #include <linux/threads.h>
#include <asm/processor.h> #include <asm/reg.h>
/* time.c */ /* time.c */
extern unsigned tb_ticks_per_jiffy; extern unsigned tb_ticks_per_jiffy;
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/config.h> #include <linux/config.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <asm/processor.h>
extern void _tlbie(unsigned long address); extern void _tlbie(unsigned long address);
extern void _tlbia(void); extern void _tlbia(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment