parisc: Drop the pa7300lc LPMC handler
authorHelge Deller <deller@gmx.de>
Sat, 12 Aug 2023 20:47:48 +0000 (22:47 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 20 Aug 2023 18:23:46 +0000 (20:23 +0200)
This was actually never really used, and the info it
prints won't help. Drop it.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/machdep.h [deleted file]
arch/parisc/kernel/Makefile
arch/parisc/kernel/pa7300lc.c [deleted file]
arch/parisc/kernel/setup.c

diff --git a/arch/parisc/include/asm/machdep.h b/arch/parisc/include/asm/machdep.h
deleted file mode 100644 (file)
index 215d2c4..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _PARISC_MACHDEP_H
-#define _PARISC_MACHDEP_H
-
-#include <linux/notifier.h>
-
-#define        MACH_RESTART    1
-#define        MACH_HALT       2
-#define MACH_POWER_ON  3
-#define        MACH_POWER_OFF  4
-
-extern struct notifier_block *mach_notifier;
-extern void pa7300lc_init(void);
-
-extern void (*cpu_lpmc)(int, struct pt_regs *);
-
-#endif
index 2d1478f..5ab0467 100644 (file)
@@ -6,7 +6,7 @@
 extra-y                := vmlinux.lds
 
 obj-y          := head.o cache.o pacache.o setup.o pdt.o traps.o time.o irq.o \
-                  pa7300lc.o syscall.o entry.o sys_parisc.o firmware.o \
+                  syscall.o entry.o sys_parisc.o firmware.o \
                   ptrace.o hardware.o inventory.o drivers.o alternative.o \
                   signal.o hpmc.o real2.o parisc_ksyms.o unaligned.o \
                   process.o processor.o pdc_cons.o pdc_chassis.o unwind.o \
diff --git a/arch/parisc/kernel/pa7300lc.c b/arch/parisc/kernel/pa7300lc.c
deleted file mode 100644 (file)
index 0d770ac..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- *   linux/arch/parisc/kernel/pa7300lc.c
- *     - PA7300LC-specific functions   
- *
- *   Copyright (C) 2000 Philipp Rumpf */
-
-#include <linux/sched.h>
-#include <linux/sched/debug.h>
-#include <linux/smp.h>
-#include <linux/kernel.h>
-#include <asm/io.h>
-#include <asm/ptrace.h>
-#include <asm/machdep.h>
-
-/* CPU register indices */
-
-#define MIOC_STATUS    0xf040
-#define MIOC_CONTROL   0xf080
-#define MDERRADD       0xf0e0
-#define DMAERR         0xf0e8
-#define DIOERR         0xf0ec
-#define HIDMAMEM       0xf0f4
-
-/* this returns the HPA of the CPU it was called on */
-static u32 cpu_hpa(void)
-{
-       return 0xfffb0000;
-}
-
-static void pa7300lc_lpmc(int code, struct pt_regs *regs)
-{
-       u32 hpa;
-       printk(KERN_WARNING "LPMC on CPU %d\n", smp_processor_id());
-
-       show_regs(regs);
-
-       hpa = cpu_hpa();
-       printk(KERN_WARNING
-               "MIOC_CONTROL %08x\n" "MIOC_STATUS  %08x\n"
-               "MDERRADD     %08x\n" "DMAERR       %08x\n"
-               "DIOERR       %08x\n" "HIDMAMEM     %08x\n",
-               gsc_readl(hpa+MIOC_CONTROL), gsc_readl(hpa+MIOC_STATUS),
-               gsc_readl(hpa+MDERRADD), gsc_readl(hpa+DMAERR),
-               gsc_readl(hpa+DIOERR), gsc_readl(hpa+HIDMAMEM));
-}
-
-void pa7300lc_init(void)
-{
-       cpu_lpmc = pa7300lc_lpmc;
-}
index 211a4af..3e95b54 100644 (file)
@@ -31,7 +31,6 @@
 #include <asm/sections.h>
 #include <asm/pdc.h>
 #include <asm/led.h>
-#include <asm/machdep.h>       /* for pa7300lc_init() proto */
 #include <asm/pdc_chassis.h>
 #include <asm/io.h>
 #include <asm/setup.h>
@@ -93,8 +92,6 @@ static void __init dma_ops_init(void)
                        "the PA-RISC 1.1 or 2.0 architecture specification.\n");
 
        case pcxl2:
-               pa7300lc_init();
-               break;
        default:
                break;
        }