]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: Remove flush_instruction_cache
authorAnton Blanchard <anton@samba.org>
Tue, 11 Jan 2005 09:44:09 +0000 (01:44 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 11 Jan 2005 09:44:09 +0000 (01:44 -0800)
Remove flush_instruction_cache, we cant touch HID bits on LPAR machines.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/misc.S
arch/ppc64/kernel/ppc_ksyms.c
include/asm-ppc64/system.h

index a795ae320b371a800887d69b9b3902d70a6474d1..1502b814a55895f2b6e487f903bc8aa04accf35a 100644 (file)
@@ -167,27 +167,7 @@ _GLOBAL(call_with_mmu_off)
        xori    r0,r0,MSR_IR|MSR_DR
        mtspr   SPRN_SRR1,r0
        rfid
-       
-/*
- * Flush instruction cache.
- */
-_GLOBAL(flush_instruction_cache)
 
-/*
- * This is called by kgdb code
- * and should probably go away
- * to be replaced by invalidating
- * the cache lines that are actually
- * modified
- */
-       /* use invalidate-all bit in HID0
-        *  - is this consistent across all 64-bit cpus?  -- paulus */
-       mfspr   r3,HID0
-       ori     r3,r3,HID0_ICFI
-       mtspr   HID0,r3
-       sync
-       isync
-       blr
 
        .section        ".toc","aw"
 PPC64_CACHES:
index 7efdaabf5b7b8e17382ec50ad4c83d30333eb580..38c0398d823cc8ce4e7f927365c6dc4be1debc9a 100644 (file)
@@ -114,7 +114,6 @@ EXPORT_SYMBOL(iounmap);
 EXPORT_SYMBOL(start_thread);
 EXPORT_SYMBOL(kernel_thread);
 
-EXPORT_SYMBOL(flush_instruction_cache);
 EXPORT_SYMBOL(giveup_fpu);
 #ifdef CONFIG_ALTIVEC
 EXPORT_SYMBOL(giveup_altivec);
index dc3153fa414ecb256428ba9ad1b62940ba5c9d3b..6785e69e8b9e4152ae6e604fc80de40b6fc2a04a 100644 (file)
@@ -108,7 +108,6 @@ extern void show_regs(struct pt_regs * regs);
 extern void low_hash_fault(struct pt_regs *regs, unsigned long address);
 extern int die(const char *str, struct pt_regs *regs, long err);
 
-extern void flush_instruction_cache(void);
 extern int _get_PVR(void);
 extern void giveup_fpu(struct task_struct *);
 extern void disable_kernel_fp(void);