2018-02-21 23:45:57

by James Hogan

[permalink] [raw]
Subject: [PATCH 00/13] Remove metag architecture

These patches remove the metag architecture and tightly dependent
drivers from the kernel. With the 4.16 kernel the ancient gcc 4.2.4
based metag toolchain we have been using is hitting compiler bugs, so
now seems a good time to drop it altogether.

Quoting from patch 1:

The earliest Meta architecture port of Linux I have a record of was an
import of a Meta port of Linux v2.4.1 in February 2004, which was worked
on significantly over the next few years by Graham Whaley, Will Newton,
Matt Fleming, myself and others.

Eventually the port was merged into mainline in v3.9 in March 2013, not
long after Imagination Technologies bought MIPS Technologies and shifted
its CPU focus over to the MIPS architecture.

As a result, though the port was maintained for a while, kept on life
support for a while longer, and useful for testing a few specific
drivers for which I don't have ready access to the equivalent MIPS
hardware, it is now essentially dead with no users.

It is also stuck using an out-of-tree toolchain based on GCC 4.2.4 which
is no longer maintained, now struggles to build modern kernels due to
toolchain bugs, and doesn't itself build with a modern GCC. The latest
buildroot port is still using an old uClibc snapshot which is no longer
served, and the latest uClibc doesn't build with GCC 4.2.4.

So lets call it a day and drop the Meta architecture port from the
kernel. RIP Meta.

Cc: Guenter Roeck <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Wim Van Sebroeck <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Wolfram Sang <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

James Hogan (13):
metag: Remove arch/metag/
docs: Remove metag docs
docs: Remove remaining references to metag
Drop a bunch of metag references
irqchip: Remove metag irqchip drivers
clocksource: Remove metag generic timer driver
tty: Remove metag DA TTY and console driver
MAINTAINERS/CREDITS: Drop METAG ARCHITECTURE
pinctrl: Drop TZ1090 drivers
gpio: Drop TZ1090 drivers
watchdog: imgpdc: Drop METAG dependency
media: img-ir: Drop METAG dependency
i2c: img-scb: Drop METAG dependency

CREDITS | 5 +
Documentation/00-INDEX | 2 -
Documentation/admin-guide/kernel-parameters.txt | 4 -
Documentation/dev-tools/kmemleak.rst | 2 +-
.../devicetree/bindings/gpio/gpio-tz1090-pdc.txt | 45 -
.../devicetree/bindings/gpio/gpio-tz1090.txt | 88 -
Documentation/devicetree/bindings/metag/meta.txt | 30 -
.../bindings/pinctrl/img,tz1090-pdc-pinctrl.txt | 127 --
.../bindings/pinctrl/img,tz1090-pinctrl.txt | 227 ---
.../features/core/BPF-JIT/arch-support.txt | 1 -
.../core/generic-idle-thread/arch-support.txt | 1 -
.../features/core/jump-labels/arch-support.txt | 1 -
.../features/core/tracehook/arch-support.txt | 1 -
.../features/debug/KASAN/arch-support.txt | 1 -
.../debug/gcov-profile-all/arch-support.txt | 1 -
Documentation/features/debug/kgdb/arch-support.txt | 1 -
.../debug/kprobes-on-ftrace/arch-support.txt | 1 -
.../features/debug/kprobes/arch-support.txt | 1 -
.../features/debug/kretprobes/arch-support.txt | 1 -
.../features/debug/optprobes/arch-support.txt | 1 -
.../features/debug/stackprotector/arch-support.txt | 1 -
.../features/debug/uprobes/arch-support.txt | 1 -
.../debug/user-ret-profiler/arch-support.txt | 1 -
.../features/io/dma-api-debug/arch-support.txt | 1 -
.../features/io/dma-contiguous/arch-support.txt | 1 -
.../features/io/sg-chain/arch-support.txt | 1 -
.../features/lib/strncasecmp/arch-support.txt | 1 -
.../locking/cmpxchg-local/arch-support.txt | 1 -
.../features/locking/lockdep/arch-support.txt | 1 -
.../locking/queued-rwlocks/arch-support.txt | 1 -
.../locking/queued-spinlocks/arch-support.txt | 1 -
.../locking/rwsem-optimized/arch-support.txt | 1 -
.../features/perf/kprobes-event/arch-support.txt | 1 -
.../features/perf/perf-regs/arch-support.txt | 1 -
.../features/perf/perf-stackdump/arch-support.txt | 1 -
.../sched/membarrier-sync-core/arch-support.txt | 1 -
.../features/sched/numa-balancing/arch-support.txt | 1 -
.../seccomp/seccomp-filter/arch-support.txt | 1 -
.../time/arch-tick-broadcast/arch-support.txt | 1 -
.../features/time/clockevents/arch-support.txt | 1 -
.../time/context-tracking/arch-support.txt | 1 -
.../features/time/irq-time-acct/arch-support.txt | 1 -
.../time/modern-timekeeping/arch-support.txt | 1 -
.../features/time/virt-cpuacct/arch-support.txt | 1 -
.../features/vm/ELF-ASLR/arch-support.txt | 1 -
.../features/vm/PG_uncached/arch-support.txt | 1 -
Documentation/features/vm/THP/arch-support.txt | 1 -
Documentation/features/vm/TLB/arch-support.txt | 1 -
.../features/vm/huge-vmap/arch-support.txt | 1 -
.../features/vm/ioremap_prot/arch-support.txt | 1 -
.../features/vm/numa-memblock/arch-support.txt | 1 -
.../features/vm/pte_special/arch-support.txt | 1 -
Documentation/metag/00-INDEX | 4 -
Documentation/metag/kernel-ABI.txt | 256 ---
MAINTAINERS | 14 -
arch/metag/Kconfig | 287 ---
arch/metag/Kconfig.debug | 34 -
arch/metag/Kconfig.soc | 69 -
arch/metag/Makefile | 89 -
arch/metag/boot/.gitignore | 3 -
arch/metag/boot/Makefile | 68 -
arch/metag/boot/dts/Makefile | 16 -
arch/metag/boot/dts/skeleton.dts | 10 -
arch/metag/boot/dts/skeleton.dtsi | 15 -
arch/metag/boot/dts/tz1090.dtsi | 108 --
arch/metag/boot/dts/tz1090_generic.dts | 10 -
arch/metag/configs/meta1_defconfig | 39 -
arch/metag/configs/meta2_defconfig | 40 -
arch/metag/configs/meta2_smp_defconfig | 41 -
arch/metag/configs/tz1090_defconfig | 42 -
arch/metag/include/asm/Kbuild | 33 -
arch/metag/include/asm/atomic.h | 49 -
arch/metag/include/asm/atomic_lnkget.h | 204 --
arch/metag/include/asm/atomic_lock1.h | 157 --
arch/metag/include/asm/barrier.h | 85 -
arch/metag/include/asm/bitops.h | 127 --
arch/metag/include/asm/bug.h | 13 -
arch/metag/include/asm/cache.h | 24 -
arch/metag/include/asm/cacheflush.h | 251 ---
arch/metag/include/asm/cachepart.h | 43 -
arch/metag/include/asm/checksum.h | 93 -
arch/metag/include/asm/clock.h | 59 -
arch/metag/include/asm/cmpxchg.h | 64 -
arch/metag/include/asm/cmpxchg_irq.h | 43 -
arch/metag/include/asm/cmpxchg_lnkget.h | 87 -
arch/metag/include/asm/cmpxchg_lock1.h | 49 -
arch/metag/include/asm/core_reg.h | 36 -
arch/metag/include/asm/cpu.h | 15 -
arch/metag/include/asm/da.h | 44 -
arch/metag/include/asm/delay.h | 30 -
arch/metag/include/asm/div64.h | 13 -
arch/metag/include/asm/dma-mapping.h | 12 -
arch/metag/include/asm/elf.h | 126 --
arch/metag/include/asm/fixmap.h | 69 -
arch/metag/include/asm/ftrace.h | 24 -
arch/metag/include/asm/global_lock.h | 101 -
arch/metag/include/asm/highmem.h | 62 -
arch/metag/include/asm/hugetlb.h | 75 -
arch/metag/include/asm/hwthread.h | 41 -
arch/metag/include/asm/io.h | 170 --
arch/metag/include/asm/irq.h | 38 -
arch/metag/include/asm/irqflags.h | 94 -
arch/metag/include/asm/l2cache.h | 259 ---
arch/metag/include/asm/linkage.h | 8 -
arch/metag/include/asm/mach/arch.h | 86 -
arch/metag/include/asm/metag_isa.h | 81 -
arch/metag/include/asm/metag_mem.h | 1109 -----------
arch/metag/include/asm/metag_regs.h | 1184 ------------
arch/metag/include/asm/mman.h | 12 -
arch/metag/include/asm/mmu.h | 78 -
arch/metag/include/asm/mmu_context.h | 115 --
arch/metag/include/asm/mmzone.h | 43 -
arch/metag/include/asm/module.h | 38 -
arch/metag/include/asm/page.h | 129 --
arch/metag/include/asm/perf_event.h | 4 -
arch/metag/include/asm/pgalloc.h | 83 -
arch/metag/include/asm/pgtable-bits.h | 105 -
arch/metag/include/asm/pgtable.h | 270 ---
arch/metag/include/asm/processor.h | 201 --
arch/metag/include/asm/ptrace.h | 61 -
arch/metag/include/asm/setup.h | 10 -
arch/metag/include/asm/smp.h | 28 -
arch/metag/include/asm/sparsemem.h | 14 -
arch/metag/include/asm/spinlock.h | 19 -
arch/metag/include/asm/spinlock_lnkget.h | 213 ---
arch/metag/include/asm/spinlock_lock1.h | 165 --
arch/metag/include/asm/spinlock_types.h | 21 -
arch/metag/include/asm/stacktrace.h | 21 -
arch/metag/include/asm/string.h | 14 -
arch/metag/include/asm/switch.h | 21 -
arch/metag/include/asm/syscall.h | 104 -
arch/metag/include/asm/syscalls.h | 40 -
arch/metag/include/asm/tbx.h | 1420 --------------
arch/metag/include/asm/tcm.h | 31 -
arch/metag/include/asm/thread_info.h | 141 --
arch/metag/include/asm/tlb.h | 37 -
arch/metag/include/asm/tlbflush.h | 78 -
arch/metag/include/asm/topology.h | 28 -
arch/metag/include/asm/traps.h | 48 -
arch/metag/include/asm/uaccess.h | 213 ---
arch/metag/include/asm/unistd.h | 12 -
arch/metag/include/asm/user_gateway.h | 45 -
arch/metag/include/uapi/asm/Kbuild | 31 -
arch/metag/include/uapi/asm/byteorder.h | 2 -
arch/metag/include/uapi/asm/ech.h | 16 -
arch/metag/include/uapi/asm/ptrace.h | 114 --
arch/metag/include/uapi/asm/sigcontext.h | 32 -
arch/metag/include/uapi/asm/siginfo.h | 16 -
arch/metag/include/uapi/asm/swab.h | 27 -
arch/metag/include/uapi/asm/unistd.h | 24 -
arch/metag/kernel/.gitignore | 1 -
arch/metag/kernel/Makefile | 40 -
arch/metag/kernel/asm-offsets.c | 15 -
arch/metag/kernel/cachepart.c | 132 --
arch/metag/kernel/clock.c | 110 --
arch/metag/kernel/core_reg.c | 118 --
arch/metag/kernel/da.c | 25 -
arch/metag/kernel/devtree.c | 57 -
arch/metag/kernel/dma.c | 588 ------
arch/metag/kernel/ftrace.c | 121 --
arch/metag/kernel/ftrace_stub.S | 62 -
arch/metag/kernel/head.S | 66 -
arch/metag/kernel/irq.c | 293 ---
arch/metag/kernel/kick.c | 110 --
arch/metag/kernel/machines.c | 21 -
arch/metag/kernel/metag_ksyms.c | 55 -
arch/metag/kernel/module.c | 284 ---
arch/metag/kernel/perf/Makefile | 3 -
arch/metag/kernel/perf/perf_event.c | 879 ---------
arch/metag/kernel/perf/perf_event.h | 106 --
arch/metag/kernel/perf_callchain.c | 97 -
arch/metag/kernel/process.c | 448 -----
arch/metag/kernel/ptrace.c | 427 -----
arch/metag/kernel/setup.c | 622 ------
arch/metag/kernel/signal.c | 336 ----
arch/metag/kernel/smp.c | 668 -------
arch/metag/kernel/stacktrace.c | 187 --
arch/metag/kernel/sys_metag.c | 181 --
arch/metag/kernel/tbiunexp.S | 23 -
arch/metag/kernel/tcm.c | 152 --
arch/metag/kernel/time.c | 26 -
arch/metag/kernel/topology.c | 78 -
arch/metag/kernel/traps.c | 992 ----------
arch/metag/kernel/user_gateway.S | 98 -
arch/metag/kernel/vmlinux.lds.S | 74 -
arch/metag/lib/Makefile | 23 -
arch/metag/lib/ashldi3.S | 34 -
arch/metag/lib/ashrdi3.S | 34 -
arch/metag/lib/checksum.c | 167 --
arch/metag/lib/clear_page.S | 18 -
arch/metag/lib/cmpdi2.S | 33 -
arch/metag/lib/copy_page.S | 21 -
arch/metag/lib/delay.c | 57 -
arch/metag/lib/div64.S | 109 --
arch/metag/lib/divsi3.S | 101 -
arch/metag/lib/ip_fast_csum.S | 33 -
arch/metag/lib/lshrdi3.S | 34 -
arch/metag/lib/memcpy.S | 186 --
arch/metag/lib/memmove.S | 346 ----
arch/metag/lib/memset.S | 87 -
arch/metag/lib/modsi3.S | 39 -
arch/metag/lib/muldi3.S | 45 -
arch/metag/lib/ucmpdi2.S | 28 -
arch/metag/lib/usercopy.c | 1257 ------------
arch/metag/mm/Kconfig | 147 --
arch/metag/mm/Makefile | 20 -
arch/metag/mm/cache.c | 521 -----
arch/metag/mm/extable.c | 15 -
arch/metag/mm/fault.c | 247 ---
arch/metag/mm/highmem.c | 122 --
arch/metag/mm/hugetlbpage.c | 251 ---
arch/metag/mm/init.c | 408 ----
arch/metag/mm/ioremap.c | 90 -
arch/metag/mm/l2cache.c | 193 --
arch/metag/mm/maccess.c | 69 -
arch/metag/mm/mmu-meta1.c | 157 --
arch/metag/mm/mmu-meta2.c | 208 --
arch/metag/mm/numa.c | 82 -
arch/metag/oprofile/Makefile | 18 -
arch/metag/oprofile/backtrace.c | 63 -
arch/metag/oprofile/backtrace.h | 7 -
arch/metag/oprofile/common.c | 66 -
arch/metag/tbx/Makefile | 22 -
arch/metag/tbx/tbicore.S | 136 --
arch/metag/tbx/tbictx.S | 366 ----
arch/metag/tbx/tbictxfpu.S | 190 --
arch/metag/tbx/tbidefr.S | 175 --
arch/metag/tbx/tbidspram.S | 161 --
arch/metag/tbx/tbilogf.S | 48 -
arch/metag/tbx/tbipcx.S | 451 -----
arch/metag/tbx/tbiroot.S | 87 -
arch/metag/tbx/tbisoft.S | 237 ---
arch/metag/tbx/tbistring.c | 114 --
arch/metag/tbx/tbitimer.S | 207 --
drivers/clocksource/Kconfig | 5 -
drivers/clocksource/Makefile | 1 -
drivers/clocksource/metag_generic.c | 161 --
drivers/gpio/Kconfig | 15 -
drivers/gpio/Makefile | 2 -
drivers/gpio/gpio-tz1090-pdc.c | 231 ---
drivers/gpio/gpio-tz1090.c | 602 ------
drivers/i2c/busses/Kconfig | 2 +-
drivers/irqchip/Makefile | 2 -
drivers/irqchip/irq-metag-ext.c | 871 ---------
drivers/irqchip/irq-metag.c | 343 ----
drivers/media/rc/img-ir/Kconfig | 2 +-
drivers/pinctrl/Kconfig | 12 -
drivers/pinctrl/Makefile | 2 -
drivers/pinctrl/pinctrl-tz1090-pdc.c | 989 ----------
drivers/pinctrl/pinctrl-tz1090.c | 2005 --------------------
drivers/tty/Kconfig | 13 -
drivers/tty/Makefile | 1 -
drivers/tty/metag_da.c | 665 -------
drivers/watchdog/Kconfig | 2 +-
include/clocksource/metag_generic.h | 21 -
include/linux/cpuhotplug.h | 1 -
include/linux/irqchip/metag-ext.h | 34 -
include/linux/irqchip/metag.h | 25 -
include/linux/mm.h | 2 -
include/trace/events/mmflags.h | 2 +-
include/uapi/linux/elf.h | 3 -
lib/Kconfig.debug | 2 +-
mm/Kconfig | 7 +-
scripts/checkstack.pl | 4 -
scripts/recordmcount.c | 20 -
tools/perf/perf-sys.h | 4 -
266 files changed, 14 insertions(+), 31962 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-tz1090-pdc.txt
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-tz1090.txt
delete mode 100644 Documentation/devicetree/bindings/metag/meta.txt
delete mode 100644 Documentation/devicetree/bindings/pinctrl/img,tz1090-pdc-pinctrl.txt
delete mode 100644 Documentation/devicetree/bindings/pinctrl/img,tz1090-pinctrl.txt
delete mode 100644 Documentation/metag/00-INDEX
delete mode 100644 Documentation/metag/kernel-ABI.txt
delete mode 100644 arch/metag/Kconfig
delete mode 100644 arch/metag/Kconfig.debug
delete mode 100644 arch/metag/Kconfig.soc
delete mode 100644 arch/metag/Makefile
delete mode 100644 arch/metag/boot/.gitignore
delete mode 100644 arch/metag/boot/Makefile
delete mode 100644 arch/metag/boot/dts/Makefile
delete mode 100644 arch/metag/boot/dts/skeleton.dts
delete mode 100644 arch/metag/boot/dts/skeleton.dtsi
delete mode 100644 arch/metag/boot/dts/tz1090.dtsi
delete mode 100644 arch/metag/boot/dts/tz1090_generic.dts
delete mode 100644 arch/metag/configs/meta1_defconfig
delete mode 100644 arch/metag/configs/meta2_defconfig
delete mode 100644 arch/metag/configs/meta2_smp_defconfig
delete mode 100644 arch/metag/configs/tz1090_defconfig
delete mode 100644 arch/metag/include/asm/Kbuild
delete mode 100644 arch/metag/include/asm/atomic.h
delete mode 100644 arch/metag/include/asm/atomic_lnkget.h
delete mode 100644 arch/metag/include/asm/atomic_lock1.h
delete mode 100644 arch/metag/include/asm/barrier.h
delete mode 100644 arch/metag/include/asm/bitops.h
delete mode 100644 arch/metag/include/asm/bug.h
delete mode 100644 arch/metag/include/asm/cache.h
delete mode 100644 arch/metag/include/asm/cacheflush.h
delete mode 100644 arch/metag/include/asm/cachepart.h
delete mode 100644 arch/metag/include/asm/checksum.h
delete mode 100644 arch/metag/include/asm/clock.h
delete mode 100644 arch/metag/include/asm/cmpxchg.h
delete mode 100644 arch/metag/include/asm/cmpxchg_irq.h
delete mode 100644 arch/metag/include/asm/cmpxchg_lnkget.h
delete mode 100644 arch/metag/include/asm/cmpxchg_lock1.h
delete mode 100644 arch/metag/include/asm/core_reg.h
delete mode 100644 arch/metag/include/asm/cpu.h
delete mode 100644 arch/metag/include/asm/da.h
delete mode 100644 arch/metag/include/asm/delay.h
delete mode 100644 arch/metag/include/asm/div64.h
delete mode 100644 arch/metag/include/asm/dma-mapping.h
delete mode 100644 arch/metag/include/asm/elf.h
delete mode 100644 arch/metag/include/asm/fixmap.h
delete mode 100644 arch/metag/include/asm/ftrace.h
delete mode 100644 arch/metag/include/asm/global_lock.h
delete mode 100644 arch/metag/include/asm/highmem.h
delete mode 100644 arch/metag/include/asm/hugetlb.h
delete mode 100644 arch/metag/include/asm/hwthread.h
delete mode 100644 arch/metag/include/asm/io.h
delete mode 100644 arch/metag/include/asm/irq.h
delete mode 100644 arch/metag/include/asm/irqflags.h
delete mode 100644 arch/metag/include/asm/l2cache.h
delete mode 100644 arch/metag/include/asm/linkage.h
delete mode 100644 arch/metag/include/asm/mach/arch.h
delete mode 100644 arch/metag/include/asm/metag_isa.h
delete mode 100644 arch/metag/include/asm/metag_mem.h
delete mode 100644 arch/metag/include/asm/metag_regs.h
delete mode 100644 arch/metag/include/asm/mman.h
delete mode 100644 arch/metag/include/asm/mmu.h
delete mode 100644 arch/metag/include/asm/mmu_context.h
delete mode 100644 arch/metag/include/asm/mmzone.h
delete mode 100644 arch/metag/include/asm/module.h
delete mode 100644 arch/metag/include/asm/page.h
delete mode 100644 arch/metag/include/asm/perf_event.h
delete mode 100644 arch/metag/include/asm/pgalloc.h
delete mode 100644 arch/metag/include/asm/pgtable-bits.h
delete mode 100644 arch/metag/include/asm/pgtable.h
delete mode 100644 arch/metag/include/asm/processor.h
delete mode 100644 arch/metag/include/asm/ptrace.h
delete mode 100644 arch/metag/include/asm/setup.h
delete mode 100644 arch/metag/include/asm/smp.h
delete mode 100644 arch/metag/include/asm/sparsemem.h
delete mode 100644 arch/metag/include/asm/spinlock.h
delete mode 100644 arch/metag/include/asm/spinlock_lnkget.h
delete mode 100644 arch/metag/include/asm/spinlock_lock1.h
delete mode 100644 arch/metag/include/asm/spinlock_types.h
delete mode 100644 arch/metag/include/asm/stacktrace.h
delete mode 100644 arch/metag/include/asm/string.h
delete mode 100644 arch/metag/include/asm/switch.h
delete mode 100644 arch/metag/include/asm/syscall.h
delete mode 100644 arch/metag/include/asm/syscalls.h
delete mode 100644 arch/metag/include/asm/tbx.h
delete mode 100644 arch/metag/include/asm/tcm.h
delete mode 100644 arch/metag/include/asm/thread_info.h
delete mode 100644 arch/metag/include/asm/tlb.h
delete mode 100644 arch/metag/include/asm/tlbflush.h
delete mode 100644 arch/metag/include/asm/topology.h
delete mode 100644 arch/metag/include/asm/traps.h
delete mode 100644 arch/metag/include/asm/uaccess.h
delete mode 100644 arch/metag/include/asm/unistd.h
delete mode 100644 arch/metag/include/asm/user_gateway.h
delete mode 100644 arch/metag/include/uapi/asm/Kbuild
delete mode 100644 arch/metag/include/uapi/asm/byteorder.h
delete mode 100644 arch/metag/include/uapi/asm/ech.h
delete mode 100644 arch/metag/include/uapi/asm/ptrace.h
delete mode 100644 arch/metag/include/uapi/asm/sigcontext.h
delete mode 100644 arch/metag/include/uapi/asm/siginfo.h
delete mode 100644 arch/metag/include/uapi/asm/swab.h
delete mode 100644 arch/metag/include/uapi/asm/unistd.h
delete mode 100644 arch/metag/kernel/.gitignore
delete mode 100644 arch/metag/kernel/Makefile
delete mode 100644 arch/metag/kernel/asm-offsets.c
delete mode 100644 arch/metag/kernel/cachepart.c
delete mode 100644 arch/metag/kernel/clock.c
delete mode 100644 arch/metag/kernel/core_reg.c
delete mode 100644 arch/metag/kernel/da.c
delete mode 100644 arch/metag/kernel/devtree.c
delete mode 100644 arch/metag/kernel/dma.c
delete mode 100644 arch/metag/kernel/ftrace.c
delete mode 100644 arch/metag/kernel/ftrace_stub.S
delete mode 100644 arch/metag/kernel/head.S
delete mode 100644 arch/metag/kernel/irq.c
delete mode 100644 arch/metag/kernel/kick.c
delete mode 100644 arch/metag/kernel/machines.c
delete mode 100644 arch/metag/kernel/metag_ksyms.c
delete mode 100644 arch/metag/kernel/module.c
delete mode 100644 arch/metag/kernel/perf/Makefile
delete mode 100644 arch/metag/kernel/perf/perf_event.c
delete mode 100644 arch/metag/kernel/perf/perf_event.h
delete mode 100644 arch/metag/kernel/perf_callchain.c
delete mode 100644 arch/metag/kernel/process.c
delete mode 100644 arch/metag/kernel/ptrace.c
delete mode 100644 arch/metag/kernel/setup.c
delete mode 100644 arch/metag/kernel/signal.c
delete mode 100644 arch/metag/kernel/smp.c
delete mode 100644 arch/metag/kernel/stacktrace.c
delete mode 100644 arch/metag/kernel/sys_metag.c
delete mode 100644 arch/metag/kernel/tbiunexp.S
delete mode 100644 arch/metag/kernel/tcm.c
delete mode 100644 arch/metag/kernel/time.c
delete mode 100644 arch/metag/kernel/topology.c
delete mode 100644 arch/metag/kernel/traps.c
delete mode 100644 arch/metag/kernel/user_gateway.S
delete mode 100644 arch/metag/kernel/vmlinux.lds.S
delete mode 100644 arch/metag/lib/Makefile
delete mode 100644 arch/metag/lib/ashldi3.S
delete mode 100644 arch/metag/lib/ashrdi3.S
delete mode 100644 arch/metag/lib/checksum.c
delete mode 100644 arch/metag/lib/clear_page.S
delete mode 100644 arch/metag/lib/cmpdi2.S
delete mode 100644 arch/metag/lib/copy_page.S
delete mode 100644 arch/metag/lib/delay.c
delete mode 100644 arch/metag/lib/div64.S
delete mode 100644 arch/metag/lib/divsi3.S
delete mode 100644 arch/metag/lib/ip_fast_csum.S
delete mode 100644 arch/metag/lib/lshrdi3.S
delete mode 100644 arch/metag/lib/memcpy.S
delete mode 100644 arch/metag/lib/memmove.S
delete mode 100644 arch/metag/lib/memset.S
delete mode 100644 arch/metag/lib/modsi3.S
delete mode 100644 arch/metag/lib/muldi3.S
delete mode 100644 arch/metag/lib/ucmpdi2.S
delete mode 100644 arch/metag/lib/usercopy.c
delete mode 100644 arch/metag/mm/Kconfig
delete mode 100644 arch/metag/mm/Makefile
delete mode 100644 arch/metag/mm/cache.c
delete mode 100644 arch/metag/mm/extable.c
delete mode 100644 arch/metag/mm/fault.c
delete mode 100644 arch/metag/mm/highmem.c
delete mode 100644 arch/metag/mm/hugetlbpage.c
delete mode 100644 arch/metag/mm/init.c
delete mode 100644 arch/metag/mm/ioremap.c
delete mode 100644 arch/metag/mm/l2cache.c
delete mode 100644 arch/metag/mm/maccess.c
delete mode 100644 arch/metag/mm/mmu-meta1.c
delete mode 100644 arch/metag/mm/mmu-meta2.c
delete mode 100644 arch/metag/mm/numa.c
delete mode 100644 arch/metag/oprofile/Makefile
delete mode 100644 arch/metag/oprofile/backtrace.c
delete mode 100644 arch/metag/oprofile/backtrace.h
delete mode 100644 arch/metag/oprofile/common.c
delete mode 100644 arch/metag/tbx/Makefile
delete mode 100644 arch/metag/tbx/tbicore.S
delete mode 100644 arch/metag/tbx/tbictx.S
delete mode 100644 arch/metag/tbx/tbictxfpu.S
delete mode 100644 arch/metag/tbx/tbidefr.S
delete mode 100644 arch/metag/tbx/tbidspram.S
delete mode 100644 arch/metag/tbx/tbilogf.S
delete mode 100644 arch/metag/tbx/tbipcx.S
delete mode 100644 arch/metag/tbx/tbiroot.S
delete mode 100644 arch/metag/tbx/tbisoft.S
delete mode 100644 arch/metag/tbx/tbistring.c
delete mode 100644 arch/metag/tbx/tbitimer.S
delete mode 100644 drivers/clocksource/metag_generic.c
delete mode 100644 drivers/gpio/gpio-tz1090-pdc.c
delete mode 100644 drivers/gpio/gpio-tz1090.c
delete mode 100644 drivers/irqchip/irq-metag-ext.c
delete mode 100644 drivers/irqchip/irq-metag.c
delete mode 100644 drivers/pinctrl/pinctrl-tz1090-pdc.c
delete mode 100644 drivers/pinctrl/pinctrl-tz1090.c
delete mode 100644 drivers/tty/metag_da.c
delete mode 100644 include/clocksource/metag_generic.h
delete mode 100644 include/linux/irqchip/metag-ext.h
delete mode 100644 include/linux/irqchip/metag.h

--
2.13.6



2018-02-21 23:42:17

by James Hogan

[permalink] [raw]
Subject: [PATCH 01/13] metag: Remove arch/metag/

The earliest Meta architecture port of Linux I have a record of was an
import of a Meta port of Linux v2.4.1 in February 2004, which was worked
on significantly over the next few years by Graham Whaley, Will Newton,
Matt Fleming, myself and others.

Eventually the port was merged into mainline in v3.9 in March 2013, not
long after Imagination Technologies bought MIPS Technologies and shifted
its CPU focus over to the MIPS architecture.

As a result, though the port was maintained for a while, kept on life
support for a while longer, and useful for testing a few specific
drivers for which I don't have ready access to the equivalent MIPS
hardware, it is now essentially dead with no users.

It is also stuck using an out-of-tree toolchain based on GCC 4.2.4 which
is no longer maintained, now struggles to build modern kernels due to
toolchain bugs, and doesn't itself build with a modern GCC. The latest
buildroot port is still using an old uClibc snapshot which is no longer
served, and the latest uClibc doesn't build with GCC 4.2.4.

So lets call it a day and drop the Meta architecture port from the
kernel. RIP Meta.

Signed-off-by: James Hogan <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Cc: Guenter Roeck <[email protected]>
Cc: [email protected]
---
arch/metag/Kconfig | 287 ------
arch/metag/Kconfig.debug | 34 -
arch/metag/Kconfig.soc | 69 --
arch/metag/Makefile | 89 --
arch/metag/boot/.gitignore | 3 -
arch/metag/boot/Makefile | 68 --
arch/metag/boot/dts/Makefile | 16 -
arch/metag/boot/dts/skeleton.dts | 10 -
arch/metag/boot/dts/skeleton.dtsi | 15 -
arch/metag/boot/dts/tz1090.dtsi | 108 ---
arch/metag/boot/dts/tz1090_generic.dts | 10 -
arch/metag/configs/meta1_defconfig | 39 -
arch/metag/configs/meta2_defconfig | 40 -
arch/metag/configs/meta2_smp_defconfig | 41 -
arch/metag/configs/tz1090_defconfig | 42 -
arch/metag/include/asm/Kbuild | 33 -
arch/metag/include/asm/atomic.h | 49 --
arch/metag/include/asm/atomic_lnkget.h | 204 -----
arch/metag/include/asm/atomic_lock1.h | 157 ----
arch/metag/include/asm/barrier.h | 85 --
arch/metag/include/asm/bitops.h | 127 ---
arch/metag/include/asm/bug.h | 13 -
arch/metag/include/asm/cache.h | 24 -
arch/metag/include/asm/cacheflush.h | 251 ------
arch/metag/include/asm/cachepart.h | 43 -
arch/metag/include/asm/checksum.h | 93 --
arch/metag/include/asm/clock.h | 59 --
arch/metag/include/asm/cmpxchg.h | 64 --
arch/metag/include/asm/cmpxchg_irq.h | 43 -
arch/metag/include/asm/cmpxchg_lnkget.h | 87 --
arch/metag/include/asm/cmpxchg_lock1.h | 49 --
arch/metag/include/asm/core_reg.h | 36 -
arch/metag/include/asm/cpu.h | 15 -
arch/metag/include/asm/da.h | 44 -
arch/metag/include/asm/delay.h | 30 -
arch/metag/include/asm/div64.h | 13 -
arch/metag/include/asm/dma-mapping.h | 12 -
arch/metag/include/asm/elf.h | 126 ---
arch/metag/include/asm/fixmap.h | 69 --
arch/metag/include/asm/ftrace.h | 24 -
arch/metag/include/asm/global_lock.h | 101 ---
arch/metag/include/asm/highmem.h | 62 --
arch/metag/include/asm/hugetlb.h | 75 --
arch/metag/include/asm/hwthread.h | 41 -
arch/metag/include/asm/io.h | 170 ----
arch/metag/include/asm/irq.h | 38 -
arch/metag/include/asm/irqflags.h | 94 --
arch/metag/include/asm/l2cache.h | 259 ------
arch/metag/include/asm/linkage.h | 8 -
arch/metag/include/asm/mach/arch.h | 86 --
arch/metag/include/asm/metag_isa.h | 81 --
arch/metag/include/asm/metag_mem.h | 1109 -----------------------
arch/metag/include/asm/metag_regs.h | 1184 -------------------------
arch/metag/include/asm/mman.h | 12 -
arch/metag/include/asm/mmu.h | 78 --
arch/metag/include/asm/mmu_context.h | 115 ---
arch/metag/include/asm/mmzone.h | 43 -
arch/metag/include/asm/module.h | 38 -
arch/metag/include/asm/page.h | 129 ---
arch/metag/include/asm/perf_event.h | 4 -
arch/metag/include/asm/pgalloc.h | 83 --
arch/metag/include/asm/pgtable-bits.h | 105 ---
arch/metag/include/asm/pgtable.h | 270 ------
arch/metag/include/asm/processor.h | 201 -----
arch/metag/include/asm/ptrace.h | 61 --
arch/metag/include/asm/setup.h | 10 -
arch/metag/include/asm/smp.h | 28 -
arch/metag/include/asm/sparsemem.h | 14 -
arch/metag/include/asm/spinlock.h | 19 -
arch/metag/include/asm/spinlock_lnkget.h | 213 -----
arch/metag/include/asm/spinlock_lock1.h | 165 ----
arch/metag/include/asm/spinlock_types.h | 21 -
arch/metag/include/asm/stacktrace.h | 21 -
arch/metag/include/asm/string.h | 14 -
arch/metag/include/asm/switch.h | 21 -
arch/metag/include/asm/syscall.h | 104 ---
arch/metag/include/asm/syscalls.h | 40 -
arch/metag/include/asm/tbx.h | 1420 ------------------------------
arch/metag/include/asm/tcm.h | 31 -
arch/metag/include/asm/thread_info.h | 141 ---
arch/metag/include/asm/tlb.h | 37 -
arch/metag/include/asm/tlbflush.h | 78 --
arch/metag/include/asm/topology.h | 28 -
arch/metag/include/asm/traps.h | 48 -
arch/metag/include/asm/uaccess.h | 213 -----
arch/metag/include/asm/unistd.h | 12 -
arch/metag/include/asm/user_gateway.h | 45 -
arch/metag/include/uapi/asm/Kbuild | 31 -
arch/metag/include/uapi/asm/byteorder.h | 2 -
arch/metag/include/uapi/asm/ech.h | 16 -
arch/metag/include/uapi/asm/ptrace.h | 114 ---
arch/metag/include/uapi/asm/sigcontext.h | 32 -
arch/metag/include/uapi/asm/siginfo.h | 16 -
arch/metag/include/uapi/asm/swab.h | 27 -
arch/metag/include/uapi/asm/unistd.h | 24 -
arch/metag/kernel/.gitignore | 1 -
arch/metag/kernel/Makefile | 40 -
arch/metag/kernel/asm-offsets.c | 15 -
arch/metag/kernel/cachepart.c | 132 ---
arch/metag/kernel/clock.c | 110 ---
arch/metag/kernel/core_reg.c | 118 ---
arch/metag/kernel/da.c | 25 -
arch/metag/kernel/devtree.c | 57 --
arch/metag/kernel/dma.c | 588 -------------
arch/metag/kernel/ftrace.c | 121 ---
arch/metag/kernel/ftrace_stub.S | 62 --
arch/metag/kernel/head.S | 66 --
arch/metag/kernel/irq.c | 293 ------
arch/metag/kernel/kick.c | 110 ---
arch/metag/kernel/machines.c | 21 -
arch/metag/kernel/metag_ksyms.c | 55 --
arch/metag/kernel/module.c | 284 ------
arch/metag/kernel/perf/Makefile | 3 -
arch/metag/kernel/perf/perf_event.c | 879 ------------------
arch/metag/kernel/perf/perf_event.h | 106 ---
arch/metag/kernel/perf_callchain.c | 97 --
arch/metag/kernel/process.c | 448 ----------
arch/metag/kernel/ptrace.c | 427 ---------
arch/metag/kernel/setup.c | 622 -------------
arch/metag/kernel/signal.c | 336 -------
arch/metag/kernel/smp.c | 668 --------------
arch/metag/kernel/stacktrace.c | 187 ----
arch/metag/kernel/sys_metag.c | 181 ----
arch/metag/kernel/tbiunexp.S | 23 -
arch/metag/kernel/tcm.c | 152 ----
arch/metag/kernel/time.c | 26 -
arch/metag/kernel/topology.c | 78 --
arch/metag/kernel/traps.c | 992 ---------------------
arch/metag/kernel/user_gateway.S | 98 ---
arch/metag/kernel/vmlinux.lds.S | 74 --
arch/metag/lib/Makefile | 23 -
arch/metag/lib/ashldi3.S | 34 -
arch/metag/lib/ashrdi3.S | 34 -
arch/metag/lib/checksum.c | 167 ----
arch/metag/lib/clear_page.S | 18 -
arch/metag/lib/cmpdi2.S | 33 -
arch/metag/lib/copy_page.S | 21 -
arch/metag/lib/delay.c | 57 --
arch/metag/lib/div64.S | 109 ---
arch/metag/lib/divsi3.S | 101 ---
arch/metag/lib/ip_fast_csum.S | 33 -
arch/metag/lib/lshrdi3.S | 34 -
arch/metag/lib/memcpy.S | 186 ----
arch/metag/lib/memmove.S | 346 --------
arch/metag/lib/memset.S | 87 --
arch/metag/lib/modsi3.S | 39 -
arch/metag/lib/muldi3.S | 45 -
arch/metag/lib/ucmpdi2.S | 28 -
arch/metag/lib/usercopy.c | 1257 --------------------------
arch/metag/mm/Kconfig | 147 ----
arch/metag/mm/Makefile | 20 -
arch/metag/mm/cache.c | 521 -----------
arch/metag/mm/extable.c | 15 -
arch/metag/mm/fault.c | 247 ------
arch/metag/mm/highmem.c | 122 ---
arch/metag/mm/hugetlbpage.c | 251 ------
arch/metag/mm/init.c | 408 ---------
arch/metag/mm/ioremap.c | 90 --
arch/metag/mm/l2cache.c | 193 ----
arch/metag/mm/maccess.c | 69 --
arch/metag/mm/mmu-meta1.c | 157 ----
arch/metag/mm/mmu-meta2.c | 208 -----
arch/metag/mm/numa.c | 82 --
arch/metag/oprofile/Makefile | 18 -
arch/metag/oprofile/backtrace.c | 63 --
arch/metag/oprofile/backtrace.h | 7 -
arch/metag/oprofile/common.c | 66 --
arch/metag/tbx/Makefile | 22 -
arch/metag/tbx/tbicore.S | 136 ---
arch/metag/tbx/tbictx.S | 366 --------
arch/metag/tbx/tbictxfpu.S | 190 ----
arch/metag/tbx/tbidefr.S | 175 ----
arch/metag/tbx/tbidspram.S | 161 ----
arch/metag/tbx/tbilogf.S | 48 -
arch/metag/tbx/tbipcx.S | 451 ----------
arch/metag/tbx/tbiroot.S | 87 --
arch/metag/tbx/tbisoft.S | 237 -----
arch/metag/tbx/tbistring.c | 114 ---
arch/metag/tbx/tbitimer.S | 207 -----
179 files changed, 25078 deletions(-)
delete mode 100644 arch/metag/Kconfig
delete mode 100644 arch/metag/Kconfig.debug
delete mode 100644 arch/metag/Kconfig.soc
delete mode 100644 arch/metag/Makefile
delete mode 100644 arch/metag/boot/.gitignore
delete mode 100644 arch/metag/boot/Makefile
delete mode 100644 arch/metag/boot/dts/Makefile
delete mode 100644 arch/metag/boot/dts/skeleton.dts
delete mode 100644 arch/metag/boot/dts/skeleton.dtsi
delete mode 100644 arch/metag/boot/dts/tz1090.dtsi
delete mode 100644 arch/metag/boot/dts/tz1090_generic.dts
delete mode 100644 arch/metag/configs/meta1_defconfig
delete mode 100644 arch/metag/configs/meta2_defconfig
delete mode 100644 arch/metag/configs/meta2_smp_defconfig
delete mode 100644 arch/metag/configs/tz1090_defconfig
delete mode 100644 arch/metag/include/asm/Kbuild
delete mode 100644 arch/metag/include/asm/atomic.h
delete mode 100644 arch/metag/include/asm/atomic_lnkget.h
delete mode 100644 arch/metag/include/asm/atomic_lock1.h
delete mode 100644 arch/metag/include/asm/barrier.h
delete mode 100644 arch/metag/include/asm/bitops.h
delete mode 100644 arch/metag/include/asm/bug.h
delete mode 100644 arch/metag/include/asm/cache.h
delete mode 100644 arch/metag/include/asm/cacheflush.h
delete mode 100644 arch/metag/include/asm/cachepart.h
delete mode 100644 arch/metag/include/asm/checksum.h
delete mode 100644 arch/metag/include/asm/clock.h
delete mode 100644 arch/metag/include/asm/cmpxchg.h
delete mode 100644 arch/metag/include/asm/cmpxchg_irq.h
delete mode 100644 arch/metag/include/asm/cmpxchg_lnkget.h
delete mode 100644 arch/metag/include/asm/cmpxchg_lock1.h
delete mode 100644 arch/metag/include/asm/core_reg.h
delete mode 100644 arch/metag/include/asm/cpu.h
delete mode 100644 arch/metag/include/asm/da.h
delete mode 100644 arch/metag/include/asm/delay.h
delete mode 100644 arch/metag/include/asm/div64.h
delete mode 100644 arch/metag/include/asm/dma-mapping.h
delete mode 100644 arch/metag/include/asm/elf.h
delete mode 100644 arch/metag/include/asm/fixmap.h
delete mode 100644 arch/metag/include/asm/ftrace.h
delete mode 100644 arch/metag/include/asm/global_lock.h
delete mode 100644 arch/metag/include/asm/highmem.h
delete mode 100644 arch/metag/include/asm/hugetlb.h
delete mode 100644 arch/metag/include/asm/hwthread.h
delete mode 100644 arch/metag/include/asm/io.h
delete mode 100644 arch/metag/include/asm/irq.h
delete mode 100644 arch/metag/include/asm/irqflags.h
delete mode 100644 arch/metag/include/asm/l2cache.h
delete mode 100644 arch/metag/include/asm/linkage.h
delete mode 100644 arch/metag/include/asm/mach/arch.h
delete mode 100644 arch/metag/include/asm/metag_isa.h
delete mode 100644 arch/metag/include/asm/metag_mem.h
delete mode 100644 arch/metag/include/asm/metag_regs.h
delete mode 100644 arch/metag/include/asm/mman.h
delete mode 100644 arch/metag/include/asm/mmu.h
delete mode 100644 arch/metag/include/asm/mmu_context.h
delete mode 100644 arch/metag/include/asm/mmzone.h
delete mode 100644 arch/metag/include/asm/module.h
delete mode 100644 arch/metag/include/asm/page.h
delete mode 100644 arch/metag/include/asm/perf_event.h
delete mode 100644 arch/metag/include/asm/pgalloc.h
delete mode 100644 arch/metag/include/asm/pgtable-bits.h
delete mode 100644 arch/metag/include/asm/pgtable.h
delete mode 100644 arch/metag/include/asm/processor.h
delete mode 100644 arch/metag/include/asm/ptrace.h
delete mode 100644 arch/metag/include/asm/setup.h
delete mode 100644 arch/metag/include/asm/smp.h
delete mode 100644 arch/metag/include/asm/sparsemem.h
delete mode 100644 arch/metag/include/asm/spinlock.h
delete mode 100644 arch/metag/include/asm/spinlock_lnkget.h
delete mode 100644 arch/metag/include/asm/spinlock_lock1.h
delete mode 100644 arch/metag/include/asm/spinlock_types.h
delete mode 100644 arch/metag/include/asm/stacktrace.h
delete mode 100644 arch/metag/include/asm/string.h
delete mode 100644 arch/metag/include/asm/switch.h
delete mode 100644 arch/metag/include/asm/syscall.h
delete mode 100644 arch/metag/include/asm/syscalls.h
delete mode 100644 arch/metag/include/asm/tbx.h
delete mode 100644 arch/metag/include/asm/tcm.h
delete mode 100644 arch/metag/include/asm/thread_info.h
delete mode 100644 arch/metag/include/asm/tlb.h
delete mode 100644 arch/metag/include/asm/tlbflush.h
delete mode 100644 arch/metag/include/asm/topology.h
delete mode 100644 arch/metag/include/asm/traps.h
delete mode 100644 arch/metag/include/asm/uaccess.h
delete mode 100644 arch/metag/include/asm/unistd.h
delete mode 100644 arch/metag/include/asm/user_gateway.h
delete mode 100644 arch/metag/include/uapi/asm/Kbuild
delete mode 100644 arch/metag/include/uapi/asm/byteorder.h
delete mode 100644 arch/metag/include/uapi/asm/ech.h
delete mode 100644 arch/metag/include/uapi/asm/ptrace.h
delete mode 100644 arch/metag/include/uapi/asm/sigcontext.h
delete mode 100644 arch/metag/include/uapi/asm/siginfo.h
delete mode 100644 arch/metag/include/uapi/asm/swab.h
delete mode 100644 arch/metag/include/uapi/asm/unistd.h
delete mode 100644 arch/metag/kernel/.gitignore
delete mode 100644 arch/metag/kernel/Makefile
delete mode 100644 arch/metag/kernel/asm-offsets.c
delete mode 100644 arch/metag/kernel/cachepart.c
delete mode 100644 arch/metag/kernel/clock.c
delete mode 100644 arch/metag/kernel/core_reg.c
delete mode 100644 arch/metag/kernel/da.c
delete mode 100644 arch/metag/kernel/devtree.c
delete mode 100644 arch/metag/kernel/dma.c
delete mode 100644 arch/metag/kernel/ftrace.c
delete mode 100644 arch/metag/kernel/ftrace_stub.S
delete mode 100644 arch/metag/kernel/head.S
delete mode 100644 arch/metag/kernel/irq.c
delete mode 100644 arch/metag/kernel/kick.c
delete mode 100644 arch/metag/kernel/machines.c
delete mode 100644 arch/metag/kernel/metag_ksyms.c
delete mode 100644 arch/metag/kernel/module.c
delete mode 100644 arch/metag/kernel/perf/Makefile
delete mode 100644 arch/metag/kernel/perf/perf_event.c
delete mode 100644 arch/metag/kernel/perf/perf_event.h
delete mode 100644 arch/metag/kernel/perf_callchain.c
delete mode 100644 arch/metag/kernel/process.c
delete mode 100644 arch/metag/kernel/ptrace.c
delete mode 100644 arch/metag/kernel/setup.c
delete mode 100644 arch/metag/kernel/signal.c
delete mode 100644 arch/metag/kernel/smp.c
delete mode 100644 arch/metag/kernel/stacktrace.c
delete mode 100644 arch/metag/kernel/sys_metag.c
delete mode 100644 arch/metag/kernel/tbiunexp.S
delete mode 100644 arch/metag/kernel/tcm.c
delete mode 100644 arch/metag/kernel/time.c
delete mode 100644 arch/metag/kernel/topology.c
delete mode 100644 arch/metag/kernel/traps.c
delete mode 100644 arch/metag/kernel/user_gateway.S
delete mode 100644 arch/metag/kernel/vmlinux.lds.S
delete mode 100644 arch/metag/lib/Makefile
delete mode 100644 arch/metag/lib/ashldi3.S
delete mode 100644 arch/metag/lib/ashrdi3.S
delete mode 100644 arch/metag/lib/checksum.c
delete mode 100644 arch/metag/lib/clear_page.S
delete mode 100644 arch/metag/lib/cmpdi2.S
delete mode 100644 arch/metag/lib/copy_page.S
delete mode 100644 arch/metag/lib/delay.c
delete mode 100644 arch/metag/lib/div64.S
delete mode 100644 arch/metag/lib/divsi3.S
delete mode 100644 arch/metag/lib/ip_fast_csum.S
delete mode 100644 arch/metag/lib/lshrdi3.S
delete mode 100644 arch/metag/lib/memcpy.S
delete mode 100644 arch/metag/lib/memmove.S
delete mode 100644 arch/metag/lib/memset.S
delete mode 100644 arch/metag/lib/modsi3.S
delete mode 100644 arch/metag/lib/muldi3.S
delete mode 100644 arch/metag/lib/ucmpdi2.S
delete mode 100644 arch/metag/lib/usercopy.c
delete mode 100644 arch/metag/mm/Kconfig
delete mode 100644 arch/metag/mm/Makefile
delete mode 100644 arch/metag/mm/cache.c
delete mode 100644 arch/metag/mm/extable.c
delete mode 100644 arch/metag/mm/fault.c
delete mode 100644 arch/metag/mm/highmem.c
delete mode 100644 arch/metag/mm/hugetlbpage.c
delete mode 100644 arch/metag/mm/init.c
delete mode 100644 arch/metag/mm/ioremap.c
delete mode 100644 arch/metag/mm/l2cache.c
delete mode 100644 arch/metag/mm/maccess.c
delete mode 100644 arch/metag/mm/mmu-meta1.c
delete mode 100644 arch/metag/mm/mmu-meta2.c
delete mode 100644 arch/metag/mm/numa.c
delete mode 100644 arch/metag/oprofile/Makefile
delete mode 100644 arch/metag/oprofile/backtrace.c
delete mode 100644 arch/metag/oprofile/backtrace.h
delete mode 100644 arch/metag/oprofile/common.c
delete mode 100644 arch/metag/tbx/Makefile
delete mode 100644 arch/metag/tbx/tbicore.S
delete mode 100644 arch/metag/tbx/tbictx.S
delete mode 100644 arch/metag/tbx/tbictxfpu.S
delete mode 100644 arch/metag/tbx/tbidefr.S
delete mode 100644 arch/metag/tbx/tbidspram.S
delete mode 100644 arch/metag/tbx/tbilogf.S
delete mode 100644 arch/metag/tbx/tbipcx.S
delete mode 100644 arch/metag/tbx/tbiroot.S
delete mode 100644 arch/metag/tbx/tbisoft.S
delete mode 100644 arch/metag/tbx/tbistring.c
delete mode 100644 arch/metag/tbx/tbitimer.S

diff --git a/arch/metag/Kconfig b/arch/metag/Kconfig
deleted file mode 100644
index c7b62a339539..000000000000
diff --git a/arch/metag/Kconfig.debug b/arch/metag/Kconfig.debug
deleted file mode 100644
index ac4516c605db..000000000000
diff --git a/arch/metag/Kconfig.soc b/arch/metag/Kconfig.soc
deleted file mode 100644
index c521f0e00d8e..000000000000
diff --git a/arch/metag/Makefile b/arch/metag/Makefile
deleted file mode 100644
index 033a58214119..000000000000
diff --git a/arch/metag/boot/.gitignore b/arch/metag/boot/.gitignore
deleted file mode 100644
index 6c662ddb909a..000000000000
diff --git a/arch/metag/boot/Makefile b/arch/metag/boot/Makefile
deleted file mode 100644
index 5a1f88cf91e3..000000000000
diff --git a/arch/metag/boot/dts/Makefile b/arch/metag/boot/dts/Makefile
deleted file mode 100644
index f0a180f62766..000000000000
diff --git a/arch/metag/boot/dts/skeleton.dts b/arch/metag/boot/dts/skeleton.dts
deleted file mode 100644
index 7a49aeb365d0..000000000000
diff --git a/arch/metag/boot/dts/skeleton.dtsi b/arch/metag/boot/dts/skeleton.dtsi
deleted file mode 100644
index 43e2ffe73c27..000000000000
diff --git a/arch/metag/boot/dts/tz1090.dtsi b/arch/metag/boot/dts/tz1090.dtsi
deleted file mode 100644
index 24ea7d2e9138..000000000000
diff --git a/arch/metag/boot/dts/tz1090_generic.dts b/arch/metag/boot/dts/tz1090_generic.dts
deleted file mode 100644
index f96090955964..000000000000
diff --git a/arch/metag/configs/meta1_defconfig b/arch/metag/configs/meta1_defconfig
deleted file mode 100644
index 01cd67e4403d..000000000000
diff --git a/arch/metag/configs/meta2_defconfig b/arch/metag/configs/meta2_defconfig
deleted file mode 100644
index 643392ba7ed5..000000000000
diff --git a/arch/metag/configs/meta2_smp_defconfig b/arch/metag/configs/meta2_smp_defconfig
deleted file mode 100644
index f3306737da20..000000000000
diff --git a/arch/metag/configs/tz1090_defconfig b/arch/metag/configs/tz1090_defconfig
deleted file mode 100644
index 9f9316a6df27..000000000000
diff --git a/arch/metag/include/asm/Kbuild b/arch/metag/include/asm/Kbuild
deleted file mode 100644
index 913c779979df..000000000000
diff --git a/arch/metag/include/asm/atomic.h b/arch/metag/include/asm/atomic.h
deleted file mode 100644
index 97ae189c2dd8..000000000000
diff --git a/arch/metag/include/asm/atomic_lnkget.h b/arch/metag/include/asm/atomic_lnkget.h
deleted file mode 100644
index 17e8c61c946d..000000000000
diff --git a/arch/metag/include/asm/atomic_lock1.h b/arch/metag/include/asm/atomic_lock1.h
deleted file mode 100644
index 2ce8fa3a79c2..000000000000
diff --git a/arch/metag/include/asm/barrier.h b/arch/metag/include/asm/barrier.h
deleted file mode 100644
index 2661fec5696a..000000000000
diff --git a/arch/metag/include/asm/bitops.h b/arch/metag/include/asm/bitops.h
deleted file mode 100644
index 766ad43010ad..000000000000
diff --git a/arch/metag/include/asm/bug.h b/arch/metag/include/asm/bug.h
deleted file mode 100644
index ee07a943f931..000000000000
diff --git a/arch/metag/include/asm/cache.h b/arch/metag/include/asm/cache.h
deleted file mode 100644
index b5df02239c8d..000000000000
diff --git a/arch/metag/include/asm/cacheflush.h b/arch/metag/include/asm/cacheflush.h
deleted file mode 100644
index 2584a51eca1a..000000000000
diff --git a/arch/metag/include/asm/cachepart.h b/arch/metag/include/asm/cachepart.h
deleted file mode 100644
index 79411e977586..000000000000
diff --git a/arch/metag/include/asm/checksum.h b/arch/metag/include/asm/checksum.h
deleted file mode 100644
index 6533d14e9789..000000000000
diff --git a/arch/metag/include/asm/clock.h b/arch/metag/include/asm/clock.h
deleted file mode 100644
index ded4ab2e1fd0..000000000000
diff --git a/arch/metag/include/asm/cmpxchg.h b/arch/metag/include/asm/cmpxchg.h
deleted file mode 100644
index 68c4ab1466fd..000000000000
diff --git a/arch/metag/include/asm/cmpxchg_irq.h b/arch/metag/include/asm/cmpxchg_irq.h
deleted file mode 100644
index 5255e37f8496..000000000000
diff --git a/arch/metag/include/asm/cmpxchg_lnkget.h b/arch/metag/include/asm/cmpxchg_lnkget.h
deleted file mode 100644
index c69be00a4739..000000000000
diff --git a/arch/metag/include/asm/cmpxchg_lock1.h b/arch/metag/include/asm/cmpxchg_lock1.h
deleted file mode 100644
index 5976e39db2b4..000000000000
diff --git a/arch/metag/include/asm/core_reg.h b/arch/metag/include/asm/core_reg.h
deleted file mode 100644
index ca70a0a29b61..000000000000
diff --git a/arch/metag/include/asm/cpu.h b/arch/metag/include/asm/cpu.h
deleted file mode 100644
index 9dac67de4748..000000000000
diff --git a/arch/metag/include/asm/da.h b/arch/metag/include/asm/da.h
deleted file mode 100644
index 901daa540e6e..000000000000
diff --git a/arch/metag/include/asm/delay.h b/arch/metag/include/asm/delay.h
deleted file mode 100644
index fd73d3d5d294..000000000000
diff --git a/arch/metag/include/asm/div64.h b/arch/metag/include/asm/div64.h
deleted file mode 100644
index e3686d2ae20e..000000000000
diff --git a/arch/metag/include/asm/dma-mapping.h b/arch/metag/include/asm/dma-mapping.h
deleted file mode 100644
index cfd6a0505b56..000000000000
diff --git a/arch/metag/include/asm/elf.h b/arch/metag/include/asm/elf.h
deleted file mode 100644
index a6c33800ba66..000000000000
diff --git a/arch/metag/include/asm/fixmap.h b/arch/metag/include/asm/fixmap.h
deleted file mode 100644
index af621b041739..000000000000
diff --git a/arch/metag/include/asm/ftrace.h b/arch/metag/include/asm/ftrace.h
deleted file mode 100644
index b1c8c76fb772..000000000000
diff --git a/arch/metag/include/asm/global_lock.h b/arch/metag/include/asm/global_lock.h
deleted file mode 100644
index 4d3da9682233..000000000000
diff --git a/arch/metag/include/asm/highmem.h b/arch/metag/include/asm/highmem.h
deleted file mode 100644
index 8b0dfd684e15..000000000000
diff --git a/arch/metag/include/asm/hugetlb.h b/arch/metag/include/asm/hugetlb.h
deleted file mode 100644
index 1607363d2639..000000000000
diff --git a/arch/metag/include/asm/hwthread.h b/arch/metag/include/asm/hwthread.h
deleted file mode 100644
index 8d2171da5414..000000000000
diff --git a/arch/metag/include/asm/io.h b/arch/metag/include/asm/io.h
deleted file mode 100644
index 71cd2bc54718..000000000000
diff --git a/arch/metag/include/asm/irq.h b/arch/metag/include/asm/irq.h
deleted file mode 100644
index cb02c29935a4..000000000000
diff --git a/arch/metag/include/asm/irqflags.h b/arch/metag/include/asm/irqflags.h
deleted file mode 100644
index e2fe34acb93b..000000000000
diff --git a/arch/metag/include/asm/l2cache.h b/arch/metag/include/asm/l2cache.h
deleted file mode 100644
index f260b158b8fe..000000000000
diff --git a/arch/metag/include/asm/linkage.h b/arch/metag/include/asm/linkage.h
deleted file mode 100644
index 3a9024ecb827..000000000000
diff --git a/arch/metag/include/asm/mach/arch.h b/arch/metag/include/asm/mach/arch.h
deleted file mode 100644
index 433f94624fa2..000000000000
diff --git a/arch/metag/include/asm/metag_isa.h b/arch/metag/include/asm/metag_isa.h
deleted file mode 100644
index c8aa2ae3899f..000000000000
diff --git a/arch/metag/include/asm/metag_mem.h b/arch/metag/include/asm/metag_mem.h
deleted file mode 100644
index 7848bc6d3b61..000000000000
diff --git a/arch/metag/include/asm/metag_regs.h b/arch/metag/include/asm/metag_regs.h
deleted file mode 100644
index 60b750971d8a..000000000000
diff --git a/arch/metag/include/asm/mman.h b/arch/metag/include/asm/mman.h
deleted file mode 100644
index dcb0d20a64fd..000000000000
diff --git a/arch/metag/include/asm/mmu.h b/arch/metag/include/asm/mmu.h
deleted file mode 100644
index cab5a01c3dcb..000000000000
diff --git a/arch/metag/include/asm/mmu_context.h b/arch/metag/include/asm/mmu_context.h
deleted file mode 100644
index 7b4766379622..000000000000
diff --git a/arch/metag/include/asm/mmzone.h b/arch/metag/include/asm/mmzone.h
deleted file mode 100644
index 8627fb532206..000000000000
diff --git a/arch/metag/include/asm/module.h b/arch/metag/include/asm/module.h
deleted file mode 100644
index e957171c320b..000000000000
diff --git a/arch/metag/include/asm/page.h b/arch/metag/include/asm/page.h
deleted file mode 100644
index 9e994d77069d..000000000000
diff --git a/arch/metag/include/asm/perf_event.h b/arch/metag/include/asm/perf_event.h
deleted file mode 100644
index 105bbff0149f..000000000000
diff --git a/arch/metag/include/asm/pgalloc.h b/arch/metag/include/asm/pgalloc.h
deleted file mode 100644
index 0b9d95d78b61..000000000000
diff --git a/arch/metag/include/asm/pgtable-bits.h b/arch/metag/include/asm/pgtable-bits.h
deleted file mode 100644
index 5f6b82282a41..000000000000
diff --git a/arch/metag/include/asm/pgtable.h b/arch/metag/include/asm/pgtable.h
deleted file mode 100644
index a3422f06c03b..000000000000
diff --git a/arch/metag/include/asm/processor.h b/arch/metag/include/asm/processor.h
deleted file mode 100644
index 9a0c502cd4a0..000000000000
diff --git a/arch/metag/include/asm/ptrace.h b/arch/metag/include/asm/ptrace.h
deleted file mode 100644
index 9074f254c9ca..000000000000
diff --git a/arch/metag/include/asm/setup.h b/arch/metag/include/asm/setup.h
deleted file mode 100644
index 504621d79ef5..000000000000
diff --git a/arch/metag/include/asm/smp.h b/arch/metag/include/asm/smp.h
deleted file mode 100644
index 8d3683d83680..000000000000
diff --git a/arch/metag/include/asm/sparsemem.h b/arch/metag/include/asm/sparsemem.h
deleted file mode 100644
index 2942894bace5..000000000000
diff --git a/arch/metag/include/asm/spinlock.h b/arch/metag/include/asm/spinlock.h
deleted file mode 100644
index 4497c232d9c1..000000000000
diff --git a/arch/metag/include/asm/spinlock_lnkget.h b/arch/metag/include/asm/spinlock_lnkget.h
deleted file mode 100644
index dfd780eab350..000000000000
diff --git a/arch/metag/include/asm/spinlock_lock1.h b/arch/metag/include/asm/spinlock_lock1.h
deleted file mode 100644
index c0bd81bbe18c..000000000000
diff --git a/arch/metag/include/asm/spinlock_types.h b/arch/metag/include/asm/spinlock_types.h
deleted file mode 100644
index cd197f1bed59..000000000000
diff --git a/arch/metag/include/asm/stacktrace.h b/arch/metag/include/asm/stacktrace.h
deleted file mode 100644
index f45e3cb2bbb5..000000000000
diff --git a/arch/metag/include/asm/string.h b/arch/metag/include/asm/string.h
deleted file mode 100644
index 86f9614d5fc6..000000000000
diff --git a/arch/metag/include/asm/switch.h b/arch/metag/include/asm/switch.h
deleted file mode 100644
index 1fd6a587c844..000000000000
diff --git a/arch/metag/include/asm/syscall.h b/arch/metag/include/asm/syscall.h
deleted file mode 100644
index 24fc97939f77..000000000000
diff --git a/arch/metag/include/asm/syscalls.h b/arch/metag/include/asm/syscalls.h
deleted file mode 100644
index eac0cf120323..000000000000
diff --git a/arch/metag/include/asm/tbx.h b/arch/metag/include/asm/tbx.h
deleted file mode 100644
index 5cd2a6c86223..000000000000
diff --git a/arch/metag/include/asm/tcm.h b/arch/metag/include/asm/tcm.h
deleted file mode 100644
index a0a4997e4b8a..000000000000
diff --git a/arch/metag/include/asm/thread_info.h b/arch/metag/include/asm/thread_info.h
deleted file mode 100644
index a1a9c7f5ca8c..000000000000
diff --git a/arch/metag/include/asm/tlb.h b/arch/metag/include/asm/tlb.h
deleted file mode 100644
index fbe6ee91e8e7..000000000000
diff --git a/arch/metag/include/asm/tlbflush.h b/arch/metag/include/asm/tlbflush.h
deleted file mode 100644
index f3e5d99a3891..000000000000
diff --git a/arch/metag/include/asm/topology.h b/arch/metag/include/asm/topology.h
deleted file mode 100644
index df0d9e6b7f12..000000000000
diff --git a/arch/metag/include/asm/traps.h b/arch/metag/include/asm/traps.h
deleted file mode 100644
index ac808740bd84..000000000000
diff --git a/arch/metag/include/asm/uaccess.h b/arch/metag/include/asm/uaccess.h
deleted file mode 100644
index a5311eb36e32..000000000000
diff --git a/arch/metag/include/asm/unistd.h b/arch/metag/include/asm/unistd.h
deleted file mode 100644
index 32955a18fb32..000000000000
diff --git a/arch/metag/include/asm/user_gateway.h b/arch/metag/include/asm/user_gateway.h
deleted file mode 100644
index cf2392b95a56..000000000000
diff --git a/arch/metag/include/uapi/asm/Kbuild b/arch/metag/include/uapi/asm/Kbuild
deleted file mode 100644
index f9eaf07d29f8..000000000000
diff --git a/arch/metag/include/uapi/asm/byteorder.h b/arch/metag/include/uapi/asm/byteorder.h
deleted file mode 100644
index e5e03ff7e20d..000000000000
diff --git a/arch/metag/include/uapi/asm/ech.h b/arch/metag/include/uapi/asm/ech.h
deleted file mode 100644
index 1e09f1ea4f7f..000000000000
diff --git a/arch/metag/include/uapi/asm/ptrace.h b/arch/metag/include/uapi/asm/ptrace.h
deleted file mode 100644
index 8ad9daa841c3..000000000000
diff --git a/arch/metag/include/uapi/asm/sigcontext.h b/arch/metag/include/uapi/asm/sigcontext.h
deleted file mode 100644
index ac7e1f28d584..000000000000
diff --git a/arch/metag/include/uapi/asm/siginfo.h b/arch/metag/include/uapi/asm/siginfo.h
deleted file mode 100644
index 9a3f6cde9487..000000000000
diff --git a/arch/metag/include/uapi/asm/swab.h b/arch/metag/include/uapi/asm/swab.h
deleted file mode 100644
index 30d696fcc237..000000000000
diff --git a/arch/metag/include/uapi/asm/unistd.h b/arch/metag/include/uapi/asm/unistd.h
deleted file mode 100644
index 9f72c4cfcfb5..000000000000
diff --git a/arch/metag/kernel/.gitignore b/arch/metag/kernel/.gitignore
deleted file mode 100644
index c5f676c3c224..000000000000
diff --git a/arch/metag/kernel/Makefile b/arch/metag/kernel/Makefile
deleted file mode 100644
index 73441d8c0369..000000000000
diff --git a/arch/metag/kernel/asm-offsets.c b/arch/metag/kernel/asm-offsets.c
deleted file mode 100644
index d9b348b99ff2..000000000000
diff --git a/arch/metag/kernel/cachepart.c b/arch/metag/kernel/cachepart.c
deleted file mode 100644
index 6e0f8a80cc96..000000000000
diff --git a/arch/metag/kernel/clock.c b/arch/metag/kernel/clock.c
deleted file mode 100644
index 6339c9c6d0ab..000000000000
diff --git a/arch/metag/kernel/core_reg.c b/arch/metag/kernel/core_reg.c
deleted file mode 100644
index df2833f2766f..000000000000
diff --git a/arch/metag/kernel/da.c b/arch/metag/kernel/da.c
deleted file mode 100644
index a35dbed6fffa..000000000000
diff --git a/arch/metag/kernel/devtree.c b/arch/metag/kernel/devtree.c
deleted file mode 100644
index 6af749a64438..000000000000
diff --git a/arch/metag/kernel/dma.c b/arch/metag/kernel/dma.c
deleted file mode 100644
index f0ab3a498328..000000000000
diff --git a/arch/metag/kernel/ftrace.c b/arch/metag/kernel/ftrace.c
deleted file mode 100644
index f7b23d300881..000000000000
diff --git a/arch/metag/kernel/ftrace_stub.S b/arch/metag/kernel/ftrace_stub.S
deleted file mode 100644
index 3acc288217c0..000000000000
diff --git a/arch/metag/kernel/head.S b/arch/metag/kernel/head.S
deleted file mode 100644
index 3ed27813413e..000000000000
diff --git a/arch/metag/kernel/irq.c b/arch/metag/kernel/irq.c
deleted file mode 100644
index 704cf17f8370..000000000000
diff --git a/arch/metag/kernel/kick.c b/arch/metag/kernel/kick.c
deleted file mode 100644
index beb377621322..000000000000
diff --git a/arch/metag/kernel/machines.c b/arch/metag/kernel/machines.c
deleted file mode 100644
index e49790181051..000000000000
diff --git a/arch/metag/kernel/metag_ksyms.c b/arch/metag/kernel/metag_ksyms.c
deleted file mode 100644
index e312386efb72..000000000000
diff --git a/arch/metag/kernel/module.c b/arch/metag/kernel/module.c
deleted file mode 100644
index bb8dfba9a763..000000000000
diff --git a/arch/metag/kernel/perf/Makefile b/arch/metag/kernel/perf/Makefile
deleted file mode 100644
index b158cb27208d..000000000000
diff --git a/arch/metag/kernel/perf/perf_event.c b/arch/metag/kernel/perf/perf_event.c
deleted file mode 100644
index 7e793eb0c1fe..000000000000
diff --git a/arch/metag/kernel/perf/perf_event.h b/arch/metag/kernel/perf/perf_event.h
deleted file mode 100644
index fd10a1345b67..000000000000
diff --git a/arch/metag/kernel/perf_callchain.c b/arch/metag/kernel/perf_callchain.c
deleted file mode 100644
index d325ba101de0..000000000000
diff --git a/arch/metag/kernel/process.c b/arch/metag/kernel/process.c
deleted file mode 100644
index 0909834c83a7..000000000000
diff --git a/arch/metag/kernel/ptrace.c b/arch/metag/kernel/ptrace.c
deleted file mode 100644
index e615603a4b0a..000000000000
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c
deleted file mode 100644
index 1166f1fbfd63..000000000000
diff --git a/arch/metag/kernel/signal.c b/arch/metag/kernel/signal.c
deleted file mode 100644
index e64e8b0a9363..000000000000
diff --git a/arch/metag/kernel/smp.c b/arch/metag/kernel/smp.c
deleted file mode 100644
index 2dbbb7c66043..000000000000
diff --git a/arch/metag/kernel/stacktrace.c b/arch/metag/kernel/stacktrace.c
deleted file mode 100644
index 09d67b7f51ca..000000000000
diff --git a/arch/metag/kernel/sys_metag.c b/arch/metag/kernel/sys_metag.c
deleted file mode 100644
index 27d96499dd38..000000000000
diff --git a/arch/metag/kernel/tbiunexp.S b/arch/metag/kernel/tbiunexp.S
deleted file mode 100644
index 2664808086c7..000000000000
diff --git a/arch/metag/kernel/tcm.c b/arch/metag/kernel/tcm.c
deleted file mode 100644
index 1d7b4e33b114..000000000000
diff --git a/arch/metag/kernel/time.c b/arch/metag/kernel/time.c
deleted file mode 100644
index 1e809e3b43d1..000000000000
diff --git a/arch/metag/kernel/topology.c b/arch/metag/kernel/topology.c
deleted file mode 100644
index 4ba595701f7d..000000000000
diff --git a/arch/metag/kernel/traps.c b/arch/metag/kernel/traps.c
deleted file mode 100644
index 3b62b1b0c0b5..000000000000
diff --git a/arch/metag/kernel/user_gateway.S b/arch/metag/kernel/user_gateway.S
deleted file mode 100644
index 7833fb8f9ddd..000000000000
diff --git a/arch/metag/kernel/vmlinux.lds.S b/arch/metag/kernel/vmlinux.lds.S
deleted file mode 100644
index 1efadae2ea8e..000000000000
diff --git a/arch/metag/lib/Makefile b/arch/metag/lib/Makefile
deleted file mode 100644
index 3982850d692c..000000000000
diff --git a/arch/metag/lib/ashldi3.S b/arch/metag/lib/ashldi3.S
deleted file mode 100644
index 5055df9e5c7b..000000000000
diff --git a/arch/metag/lib/ashrdi3.S b/arch/metag/lib/ashrdi3.S
deleted file mode 100644
index 0c838fd9da85..000000000000
diff --git a/arch/metag/lib/checksum.c b/arch/metag/lib/checksum.c
deleted file mode 100644
index 5d6a98a05e9d..000000000000
diff --git a/arch/metag/lib/clear_page.S b/arch/metag/lib/clear_page.S
deleted file mode 100644
index 87756a5d1367..000000000000
diff --git a/arch/metag/lib/cmpdi2.S b/arch/metag/lib/cmpdi2.S
deleted file mode 100644
index ab70bd94fd81..000000000000
diff --git a/arch/metag/lib/copy_page.S b/arch/metag/lib/copy_page.S
deleted file mode 100644
index abbc75e94374..000000000000
diff --git a/arch/metag/lib/delay.c b/arch/metag/lib/delay.c
deleted file mode 100644
index 6754012a261f..000000000000
diff --git a/arch/metag/lib/div64.S b/arch/metag/lib/div64.S
deleted file mode 100644
index 55eece273a6b..000000000000
diff --git a/arch/metag/lib/divsi3.S b/arch/metag/lib/divsi3.S
deleted file mode 100644
index 9e31abefb160..000000000000
diff --git a/arch/metag/lib/ip_fast_csum.S b/arch/metag/lib/ip_fast_csum.S
deleted file mode 100644
index 441f489d6a81..000000000000
diff --git a/arch/metag/lib/lshrdi3.S b/arch/metag/lib/lshrdi3.S
deleted file mode 100644
index cf7ffc9b377f..000000000000
diff --git a/arch/metag/lib/memcpy.S b/arch/metag/lib/memcpy.S
deleted file mode 100644
index c2e8395f9456..000000000000
diff --git a/arch/metag/lib/memmove.S b/arch/metag/lib/memmove.S
deleted file mode 100644
index 934abda0e680..000000000000
diff --git a/arch/metag/lib/memset.S b/arch/metag/lib/memset.S
deleted file mode 100644
index 6ee246d831c7..000000000000
diff --git a/arch/metag/lib/modsi3.S b/arch/metag/lib/modsi3.S
deleted file mode 100644
index d65a2e5b3154..000000000000
diff --git a/arch/metag/lib/muldi3.S b/arch/metag/lib/muldi3.S
deleted file mode 100644
index 9d106790244d..000000000000
diff --git a/arch/metag/lib/ucmpdi2.S b/arch/metag/lib/ucmpdi2.S
deleted file mode 100644
index 46f5686db8b1..000000000000
diff --git a/arch/metag/lib/usercopy.c b/arch/metag/lib/usercopy.c
deleted file mode 100644
index a48ef522c02d..000000000000
diff --git a/arch/metag/mm/Kconfig b/arch/metag/mm/Kconfig
deleted file mode 100644
index 9d4b2c67dcc1..000000000000
diff --git a/arch/metag/mm/Makefile b/arch/metag/mm/Makefile
deleted file mode 100644
index 0c7c91ba9fb9..000000000000
diff --git a/arch/metag/mm/cache.c b/arch/metag/mm/cache.c
deleted file mode 100644
index a62285284ab8..000000000000
diff --git a/arch/metag/mm/extable.c b/arch/metag/mm/extable.c
deleted file mode 100644
index 9b92d3ad7f9c..000000000000
diff --git a/arch/metag/mm/fault.c b/arch/metag/mm/fault.c
deleted file mode 100644
index de54fe686080..000000000000
diff --git a/arch/metag/mm/highmem.c b/arch/metag/mm/highmem.c
deleted file mode 100644
index 83527fc7c8a7..000000000000
diff --git a/arch/metag/mm/hugetlbpage.c b/arch/metag/mm/hugetlbpage.c
deleted file mode 100644
index 012ee4c80dc7..000000000000
diff --git a/arch/metag/mm/init.c b/arch/metag/mm/init.c
deleted file mode 100644
index 0e2ca9058998..000000000000
diff --git a/arch/metag/mm/ioremap.c b/arch/metag/mm/ioremap.c
deleted file mode 100644
index df2b59cb02eb..000000000000
diff --git a/arch/metag/mm/l2cache.c b/arch/metag/mm/l2cache.c
deleted file mode 100644
index addffc58989c..000000000000
diff --git a/arch/metag/mm/maccess.c b/arch/metag/mm/maccess.c
deleted file mode 100644
index c22755165df9..000000000000
diff --git a/arch/metag/mm/mmu-meta1.c b/arch/metag/mm/mmu-meta1.c
deleted file mode 100644
index 53190b13dc54..000000000000
diff --git a/arch/metag/mm/mmu-meta2.c b/arch/metag/mm/mmu-meta2.c
deleted file mode 100644
index 8b668a69c980..000000000000
diff --git a/arch/metag/mm/numa.c b/arch/metag/mm/numa.c
deleted file mode 100644
index 67b46c295072..000000000000
diff --git a/arch/metag/oprofile/Makefile b/arch/metag/oprofile/Makefile
deleted file mode 100644
index dc92a4a3d618..000000000000
diff --git a/arch/metag/oprofile/backtrace.c b/arch/metag/oprofile/backtrace.c
deleted file mode 100644
index 7cc3f37cb40e..000000000000
diff --git a/arch/metag/oprofile/backtrace.h b/arch/metag/oprofile/backtrace.h
deleted file mode 100644
index 60adb862aa2c..000000000000
diff --git a/arch/metag/oprofile/common.c b/arch/metag/oprofile/common.c
deleted file mode 100644
index ba26152b3c00..000000000000
diff --git a/arch/metag/tbx/Makefile b/arch/metag/tbx/Makefile
deleted file mode 100644
index 98bc5453cf24..000000000000
diff --git a/arch/metag/tbx/tbicore.S b/arch/metag/tbx/tbicore.S
deleted file mode 100644
index a0838ebcb433..000000000000
diff --git a/arch/metag/tbx/tbictx.S b/arch/metag/tbx/tbictx.S
deleted file mode 100644
index 19af983a13ae..000000000000
diff --git a/arch/metag/tbx/tbictxfpu.S b/arch/metag/tbx/tbictxfpu.S
deleted file mode 100644
index e773bea3e7bd..000000000000
diff --git a/arch/metag/tbx/tbidefr.S b/arch/metag/tbx/tbidefr.S
deleted file mode 100644
index 8f0902b22f70..000000000000
diff --git a/arch/metag/tbx/tbidspram.S b/arch/metag/tbx/tbidspram.S
deleted file mode 100644
index 2f27c0372212..000000000000
diff --git a/arch/metag/tbx/tbilogf.S b/arch/metag/tbx/tbilogf.S
deleted file mode 100644
index 4a34d80657db..000000000000
diff --git a/arch/metag/tbx/tbipcx.S b/arch/metag/tbx/tbipcx.S
deleted file mode 100644
index 163c79ac913b..000000000000
diff --git a/arch/metag/tbx/tbiroot.S b/arch/metag/tbx/tbiroot.S
deleted file mode 100644
index 7d84daf1340b..000000000000
diff --git a/arch/metag/tbx/tbisoft.S b/arch/metag/tbx/tbisoft.S
deleted file mode 100644
index b04f50df8d91..000000000000
diff --git a/arch/metag/tbx/tbistring.c b/arch/metag/tbx/tbistring.c
deleted file mode 100644
index f90cd0822065..000000000000
diff --git a/arch/metag/tbx/tbitimer.S b/arch/metag/tbx/tbitimer.S
deleted file mode 100644
index 5dbeddeee7ba..000000000000
--
2.13.6


2018-02-21 23:43:05

by James Hogan

[permalink] [raw]
Subject: [PATCH 13/13] i2c: img-scb: Drop METAG dependency

Now that arch/metag/ has been removed, remove the METAG dependency from
the IMG SCB I2C device driver. The hardware is also present on MIPS SoCs
so the driver still has value.

Signed-off-by: James Hogan <[email protected]>
Cc: Wolfram Sang <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
drivers/i2c/busses/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index a9805c7cb305..94f419489a0b 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -635,7 +635,7 @@ config I2C_IBM_IIC

config I2C_IMG
tristate "Imagination Technologies I2C SCB Controller"
- depends on MIPS || METAG || COMPILE_TEST
+ depends on MIPS || COMPILE_TEST
help
Say Y here if you want to use the IMG I2C SCB controller,
available on the TZ1090 and other IMG SoCs.
--
2.13.6


2018-02-21 23:43:23

by James Hogan

[permalink] [raw]
Subject: [PATCH 10/13] gpio: Drop TZ1090 drivers

Now that arch/metag/ has been removed, along with TZ1090 SoC support,
remove the TZ1090 GPIO drivers. They are of no value without the
architecture and SoC platform code.

Signed-off-by: James Hogan <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
.../devicetree/bindings/gpio/gpio-tz1090-pdc.txt | 45 --
.../devicetree/bindings/gpio/gpio-tz1090.txt | 88 ---
drivers/gpio/Kconfig | 15 -
drivers/gpio/Makefile | 2 -
drivers/gpio/gpio-tz1090-pdc.c | 231 --------
drivers/gpio/gpio-tz1090.c | 602 ---------------------
6 files changed, 983 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-tz1090-pdc.txt
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-tz1090.txt
delete mode 100644 drivers/gpio/gpio-tz1090-pdc.c
delete mode 100644 drivers/gpio/gpio-tz1090.c

diff --git a/Documentation/devicetree/bindings/gpio/gpio-tz1090-pdc.txt b/Documentation/devicetree/bindings/gpio/gpio-tz1090-pdc.txt
deleted file mode 100644
index 528f5ef5a893..000000000000
diff --git a/Documentation/devicetree/bindings/gpio/gpio-tz1090.txt b/Documentation/devicetree/bindings/gpio/gpio-tz1090.txt
deleted file mode 100644
index b05a90e0ab29..000000000000
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 8dbb2280538d..8fda844de07e 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -462,21 +462,6 @@ config GPIO_THUNDERX
Say yes here to support the on-chip GPIO lines on the ThunderX
and OCTEON-TX families of SoCs.

-config GPIO_TZ1090
- bool "Toumaz Xenif TZ1090 GPIO support"
- depends on SOC_TZ1090
- select GENERIC_IRQ_CHIP
- default y
- help
- Say yes here to support Toumaz Xenif TZ1090 GPIOs.
-
-config GPIO_TZ1090_PDC
- bool "Toumaz Xenif TZ1090 PDC GPIO support"
- depends on SOC_TZ1090
- default y
- help
- Say yes here to support Toumaz Xenif TZ1090 PDC GPIOs.
-
config GPIO_UNIPHIER
tristate "UniPhier GPIO support"
depends on ARCH_UNIPHIER || COMPILE_TEST
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index cccb0d40846c..329e34d1bd2e 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -131,8 +131,6 @@ obj-$(CONFIG_GPIO_TS4900) += gpio-ts4900.o
obj-$(CONFIG_GPIO_TS5500) += gpio-ts5500.o
obj-$(CONFIG_GPIO_TWL4030) += gpio-twl4030.o
obj-$(CONFIG_GPIO_TWL6040) += gpio-twl6040.o
-obj-$(CONFIG_GPIO_TZ1090) += gpio-tz1090.o
-obj-$(CONFIG_GPIO_TZ1090_PDC) += gpio-tz1090-pdc.o
obj-$(CONFIG_GPIO_UCB1400) += gpio-ucb1400.o
obj-$(CONFIG_GPIO_UNIPHIER) += gpio-uniphier.o
obj-$(CONFIG_GPIO_VF610) += gpio-vf610.o
diff --git a/drivers/gpio/gpio-tz1090-pdc.c b/drivers/gpio/gpio-tz1090-pdc.c
deleted file mode 100644
index 5b7781741ee9..000000000000
diff --git a/drivers/gpio/gpio-tz1090.c b/drivers/gpio/gpio-tz1090.c
deleted file mode 100644
index 0bb9bb583889..000000000000
--
2.13.6


2018-02-21 23:43:33

by James Hogan

[permalink] [raw]
Subject: [PATCH 11/13] watchdog: imgpdc: Drop METAG dependency

Now that arch/metag/ has been removed, remove the METAG dependency from
the IMG IR device driver. The hardware is also present on MIPS SoCs so
the driver still has value.

Signed-off-by: James Hogan <[email protected]>
Cc: Wim Van Sebroeck <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
drivers/watchdog/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index aff773bcebdb..152268010c45 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1602,7 +1602,7 @@ config BCM7038_WDT
config IMGPDC_WDT
tristate "Imagination Technologies PDC Watchdog Timer"
depends on HAS_IOMEM
- depends on METAG || MIPS || COMPILE_TEST
+ depends on MIPS || COMPILE_TEST
select WATCHDOG_CORE
help
Driver for Imagination Technologies PowerDown Controller
--
2.13.6


2018-02-21 23:43:34

by James Hogan

[permalink] [raw]
Subject: [PATCH 12/13] media: img-ir: Drop METAG dependency

Now that arch/metag/ has been removed, remove the METAG dependency from
the IMG IR device driver. The hardware is also present on MIPS SoCs so
the driver still has value.

Signed-off-by: James Hogan <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
drivers/media/rc/img-ir/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/rc/img-ir/Kconfig b/drivers/media/rc/img-ir/Kconfig
index a896d3c83a1c..d2c6617d468e 100644
--- a/drivers/media/rc/img-ir/Kconfig
+++ b/drivers/media/rc/img-ir/Kconfig
@@ -1,7 +1,7 @@
config IR_IMG
tristate "ImgTec IR Decoder"
depends on RC_CORE
- depends on METAG || MIPS || COMPILE_TEST
+ depends on MIPS || COMPILE_TEST
select IR_IMG_HW if !IR_IMG_RAW
help
Say Y or M here if you want to use the ImgTec infrared decoder
--
2.13.6


2018-02-21 23:44:13

by James Hogan

[permalink] [raw]
Subject: [PATCH 07/13] tty: Remove metag DA TTY and console driver

Now that arch/metag/ has been removed, remove the metag DA TTY and
console driver. It is of no value without the architecture code.

Signed-off-by: James Hogan <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: [email protected]
---
drivers/tty/Kconfig | 13 -
drivers/tty/Makefile | 1 -
drivers/tty/metag_da.c | 665 -------------------------------------------------
3 files changed, 679 deletions(-)
delete mode 100644 drivers/tty/metag_da.c

diff --git a/drivers/tty/Kconfig b/drivers/tty/Kconfig
index b811442c5ce6..75a71ebcb369 100644
--- a/drivers/tty/Kconfig
+++ b/drivers/tty/Kconfig
@@ -402,19 +402,6 @@ config GOLDFISH_TTY_EARLY_CONSOLE
default y if GOLDFISH_TTY=y
select SERIAL_EARLYCON

-config DA_TTY
- bool "DA TTY"
- depends on METAG_DA
- select SERIAL_NONSTANDARD
- help
- This enables a TTY on a Dash channel.
-
-config DA_CONSOLE
- bool "DA Console"
- depends on DA_TTY
- help
- This enables a console on a Dash channel.
-
config MIPS_EJTAG_FDC_TTY
bool "MIPS EJTAG Fast Debug Channel TTY"
depends on MIPS_CDMM
diff --git a/drivers/tty/Makefile b/drivers/tty/Makefile
index 8ce3a8661b31..47c71f43a397 100644
--- a/drivers/tty/Makefile
+++ b/drivers/tty/Makefile
@@ -32,7 +32,6 @@ obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
obj-$(CONFIG_SYNCLINK) += synclink.o
obj-$(CONFIG_PPC_EPAPR_HV_BYTECHAN) += ehv_bytechan.o
obj-$(CONFIG_GOLDFISH_TTY) += goldfish.o
-obj-$(CONFIG_DA_TTY) += metag_da.o
obj-$(CONFIG_MIPS_EJTAG_FDC_TTY) += mips_ejtag_fdc.o
obj-$(CONFIG_VCC) += vcc.o

diff --git a/drivers/tty/metag_da.c b/drivers/tty/metag_da.c
deleted file mode 100644
index 99eaed4b2dbc..000000000000
--
2.13.6


2018-02-21 23:44:30

by James Hogan

[permalink] [raw]
Subject: [PATCH 08/13] MAINTAINERS/CREDITS: Drop METAG ARCHITECTURE

The core Meta architecture support has now been removed, so drop the
MAINTAINERS entry and add an entry to CREDITS.

Signed-off-by: James Hogan <[email protected]>
Cc: [email protected]
---
CREDITS | 5 +++++
MAINTAINERS | 14 --------------
2 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/CREDITS b/CREDITS
index a3ec0c744172..989cda91c427 100644
--- a/CREDITS
+++ b/CREDITS
@@ -1564,6 +1564,11 @@ W: http://www.carumba.com/
D: bug toaster (A1 sauce makes all the difference)
D: Random linux hacker

+N: James Hogan
+E: [email protected]
+D: Metag architecture maintainer
+D: TZ1090 SoC maintainer
+
N: Tim Hockin
E: [email protected]
W: http://www.hockin.org/~thockin
diff --git a/MAINTAINERS b/MAINTAINERS
index 9a7f76eadae9..d5ddf19e76bb 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9081,20 +9081,6 @@ F: drivers/media/platform/meson/ao-cec.c
F: Documentation/devicetree/bindings/media/meson-ao-cec.txt
T: git git://linuxtv.org/media_tree.git

-METAG ARCHITECTURE
-M: James Hogan <[email protected]>
-L: [email protected]
-T: git git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag.git
-S: Odd Fixes
-F: arch/metag/
-F: Documentation/metag/
-F: Documentation/devicetree/bindings/metag/
-F: Documentation/devicetree/bindings/interrupt-controller/img,*
-F: drivers/clocksource/metag_generic.c
-F: drivers/irqchip/irq-metag.c
-F: drivers/irqchip/irq-metag-ext.c
-F: drivers/tty/metag_da.c
-
MICROBLAZE ARCHITECTURE
M: Michal Simek <[email protected]>
W: http://www.monstr.eu/fdt/
--
2.13.6


2018-02-21 23:44:43

by James Hogan

[permalink] [raw]
Subject: [PATCH 09/13] pinctrl: Drop TZ1090 drivers

Now that arch/metag/ has been removed, along with TZ1090 SoC support,
remove the TZ1090 pinctrl drivers. They are of no value without the
architecture and SoC platform code.

Signed-off-by: James Hogan <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
.../bindings/pinctrl/img,tz1090-pdc-pinctrl.txt | 127 --
.../bindings/pinctrl/img,tz1090-pinctrl.txt | 227 ---
drivers/pinctrl/Kconfig | 12 -
drivers/pinctrl/Makefile | 2 -
drivers/pinctrl/pinctrl-tz1090-pdc.c | 989 ----------
drivers/pinctrl/pinctrl-tz1090.c | 2005 --------------------
6 files changed, 3362 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/pinctrl/img,tz1090-pdc-pinctrl.txt
delete mode 100644 Documentation/devicetree/bindings/pinctrl/img,tz1090-pinctrl.txt
delete mode 100644 drivers/pinctrl/pinctrl-tz1090-pdc.c
delete mode 100644 drivers/pinctrl/pinctrl-tz1090.c

diff --git a/Documentation/devicetree/bindings/pinctrl/img,tz1090-pdc-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/img,tz1090-pdc-pinctrl.txt
deleted file mode 100644
index cf9ccdff4455..000000000000
diff --git a/Documentation/devicetree/bindings/pinctrl/img,tz1090-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/img,tz1090-pinctrl.txt
deleted file mode 100644
index 2dfd9a3fc1e4..000000000000
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 0f254b35c378..f5ef8201c09f 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -263,18 +263,6 @@ config PINCTRL_ST
select PINCONF
select GPIOLIB_IRQCHIP

-config PINCTRL_TZ1090
- bool "Toumaz Xenif TZ1090 pin control driver"
- depends on SOC_TZ1090
- select PINMUX
- select GENERIC_PINCONF
-
-config PINCTRL_TZ1090_PDC
- bool "Toumaz Xenif TZ1090 PDC pin control driver"
- depends on SOC_TZ1090
- select PINMUX
- select PINCONF
-
config PINCTRL_U300
bool "U300 pin controller driver"
depends on ARCH_U300
diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile
index d3692633e9ed..6255546735ff 100644
--- a/drivers/pinctrl/Makefile
+++ b/drivers/pinctrl/Makefile
@@ -34,8 +34,6 @@ obj-$(CONFIG_PINCTRL_SINGLE) += pinctrl-single.o
obj-$(CONFIG_PINCTRL_SIRF) += sirf/
obj-$(CONFIG_PINCTRL_SX150X) += pinctrl-sx150x.o
obj-$(CONFIG_ARCH_TEGRA) += tegra/
-obj-$(CONFIG_PINCTRL_TZ1090) += pinctrl-tz1090.o
-obj-$(CONFIG_PINCTRL_TZ1090_PDC) += pinctrl-tz1090-pdc.o
obj-$(CONFIG_PINCTRL_U300) += pinctrl-u300.o
obj-$(CONFIG_PINCTRL_COH901) += pinctrl-coh901.o
obj-$(CONFIG_PINCTRL_XWAY) += pinctrl-xway.o
diff --git a/drivers/pinctrl/pinctrl-tz1090-pdc.c b/drivers/pinctrl/pinctrl-tz1090-pdc.c
deleted file mode 100644
index b16d1c96b7eb..000000000000
diff --git a/drivers/pinctrl/pinctrl-tz1090.c b/drivers/pinctrl/pinctrl-tz1090.c
deleted file mode 100644
index 2379ce2be365..000000000000
--
2.13.6


2018-02-21 23:44:56

by James Hogan

[permalink] [raw]
Subject: [PATCH 04/13] Drop a bunch of metag references

Now that arch/metag/ has been removed, drop a bunch of metag references
in various codes across the whole tree:
- VM_GROWSUP and __VM_ARCH_PECIFIC_1.
- MT_METAG_* ELF note types.
- METAG Kconfig dependencies (FRAME_POINTER) and ranges
(MAX_STACK_SIZE_MB).
- metag cases in tools (checkstack.pl, recordmcount.c, perf).

Signed-off-by: James Hogan <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
include/linux/mm.h | 2 --
include/trace/events/mmflags.h | 2 +-
include/uapi/linux/elf.h | 3 ---
lib/Kconfig.debug | 2 +-
mm/Kconfig | 7 +++----
scripts/checkstack.pl | 4 ----
scripts/recordmcount.c | 20 --------------------
tools/perf/perf-sys.h | 4 ----
8 files changed, 5 insertions(+), 39 deletions(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index ad06d42adb1a..ccac10682ce5 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -241,8 +241,6 @@ extern unsigned int kobjsize(const void *objp);
# define VM_SAO VM_ARCH_1 /* Strong Access Ordering (powerpc) */
#elif defined(CONFIG_PARISC)
# define VM_GROWSUP VM_ARCH_1
-#elif defined(CONFIG_METAG)
-# define VM_GROWSUP VM_ARCH_1
#elif defined(CONFIG_IA64)
# define VM_GROWSUP VM_ARCH_1
#elif !defined(CONFIG_MMU)
diff --git a/include/trace/events/mmflags.h b/include/trace/events/mmflags.h
index dbe1bb058c09..a81cffb76d89 100644
--- a/include/trace/events/mmflags.h
+++ b/include/trace/events/mmflags.h
@@ -115,7 +115,7 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" )
#define __VM_ARCH_SPECIFIC_1 {VM_PAT, "pat" }
#elif defined(CONFIG_PPC)
#define __VM_ARCH_SPECIFIC_1 {VM_SAO, "sao" }
-#elif defined(CONFIG_PARISC) || defined(CONFIG_METAG) || defined(CONFIG_IA64)
+#elif defined(CONFIG_PARISC) || defined(CONFIG_IA64)
#define __VM_ARCH_SPECIFIC_1 {VM_GROWSUP, "growsup" }
#elif !defined(CONFIG_MMU)
#define __VM_ARCH_SPECIFIC_1 {VM_MAPPED_COPY,"mappedcopy" }
diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
index 3bf73fb58045..e2535d6dcec7 100644
--- a/include/uapi/linux/elf.h
+++ b/include/uapi/linux/elf.h
@@ -420,9 +420,6 @@ typedef struct elf64_shdr {
#define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */
#define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
#define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension registers */
-#define NT_METAG_CBUF 0x500 /* Metag catch buffer registers */
-#define NT_METAG_RPIPE 0x501 /* Metag read pipeline state */
-#define NT_METAG_TLS 0x502 /* Metag TLS pointer */
#define NT_ARC_V2 0x600 /* ARCv2 accumulator/extra registers */

/* Note header in a PT_NOTE section */
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 6088408ef26c..d1c523e408e9 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -356,7 +356,7 @@ config FRAME_POINTER
bool "Compile the kernel with frame pointers"
depends on DEBUG_KERNEL && \
(CRIS || M68K || FRV || UML || \
- SUPERH || BLACKFIN || MN10300 || METAG) || \
+ SUPERH || BLACKFIN || MN10300) || \
ARCH_WANT_FRAME_POINTERS
default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS
help
diff --git a/mm/Kconfig b/mm/Kconfig
index c782e8fb7235..abefa573bcd8 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -627,15 +627,14 @@ config GENERIC_EARLY_IOREMAP
config MAX_STACK_SIZE_MB
int "Maximum user stack size for 32-bit processes (MB)"
default 80
- range 8 256 if METAG
range 8 2048
depends on STACK_GROWSUP && (!64BIT || COMPAT)
help
This is the maximum stack size in Megabytes in the VM layout of 32-bit
user processes when the stack grows upwards (currently only on parisc
- and metag arch). The stack will be located at the highest memory
- address minus the given value, unless the RLIMIT_STACK hard limit is
- changed to a smaller value in which case that is used.
+ arch). The stack will be located at the highest memory address minus
+ the given value, unless the RLIMIT_STACK hard limit is changed to a
+ smaller value in which case that is used.

A sane initial value is 80 MB.

diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index cb993801e4b2..eeb9ac8dbcfb 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -64,10 +64,6 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
# 2b6c: 4e56 fb70 linkw %fp,#-1168
# 1df770: defc ffe4 addaw #-28,%sp
$re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o;
- } elsif ($arch eq 'metag') {
- #400026fc: 40 00 00 82 ADD A0StP,A0StP,#0x8
- $re = qr/.*ADD.*A0StP,A0StP,\#(0x$x{1,8})/o;
- $funcre = qr/^$x* <[^\$](.*)>:$/;
} elsif ($arch eq 'mips64') {
#8800402c: 67bdfff0 daddiu sp,sp,-16
$re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index 16e086dcc567..8c9691c3329e 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -33,20 +33,6 @@
#include <string.h>
#include <unistd.h>

-/*
- * glibc synced up and added the metag number but didn't add the relocations.
- * Work around this in a crude manner for now.
- */
-#ifndef EM_METAG
-#define EM_METAG 174
-#endif
-#ifndef R_METAG_ADDR32
-#define R_METAG_ADDR32 2
-#endif
-#ifndef R_METAG_NONE
-#define R_METAG_NONE 3
-#endif
-
#ifndef EM_AARCH64
#define EM_AARCH64 183
#define R_AARCH64_NONE 0
@@ -538,12 +524,6 @@ do_file(char const *const fname)
gpfx = '_';
break;
case EM_IA_64: reltype = R_IA64_IMM64; gpfx = '_'; break;
- case EM_METAG: reltype = R_METAG_ADDR32;
- altmcount = "_mcount_wrapper";
- rel_type_nop = R_METAG_NONE;
- /* We happen to have the same requirement as MIPS */
- is_fake_mcount32 = MIPS32_is_fake_mcount;
- break;
case EM_MIPS: /* reltype: e_class */ gpfx = '_'; break;
case EM_PPC: reltype = R_PPC_ADDR32; gpfx = '_'; break;
case EM_PPC64: reltype = R_PPC64_ADDR64; gpfx = '_'; break;
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
index 36673f98d66b..3eb7a39169f6 100644
--- a/tools/perf/perf-sys.h
+++ b/tools/perf/perf-sys.h
@@ -46,10 +46,6 @@
#define CPUINFO_PROC {"Processor"}
#endif

-#ifdef __metag__
-#define CPUINFO_PROC {"CPU"}
-#endif
-
#ifdef __xtensa__
#define CPUINFO_PROC {"core ID"}
#endif
--
2.13.6


2018-02-21 23:45:04

by James Hogan

[permalink] [raw]
Subject: [PATCH 06/13] clocksource: Remove metag generic timer driver

Now that arch/metag/ has been removed, remove the metag generic
per-thread timer driver. It is of no value without the architecture
code.

Signed-off-by: James Hogan <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
---
drivers/clocksource/Kconfig | 5 --
drivers/clocksource/Makefile | 1 -
drivers/clocksource/metag_generic.c | 161 ------------------------------------
include/clocksource/metag_generic.h | 21 -----
include/linux/cpuhotplug.h | 1 -
5 files changed, 189 deletions(-)
delete mode 100644 drivers/clocksource/metag_generic.c
delete mode 100644 include/clocksource/metag_generic.h

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index b3b4ed9b6874..f99dbc2f7ee4 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -391,11 +391,6 @@ config ATMEL_ST
help
Support for the Atmel ST timer.

-config CLKSRC_METAG_GENERIC
- def_bool y if METAG
- help
- This option enables support for the Meta per-thread timers.
-
config CLKSRC_EXYNOS_MCT
bool "Exynos multi core timer driver" if COMPILE_TEST
depends on ARM || ARM64
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile
index d6dec4489d66..a2d47e9ecf91 100644
--- a/drivers/clocksource/Makefile
+++ b/drivers/clocksource/Makefile
@@ -61,7 +61,6 @@ obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o
obj-$(CONFIG_ARM_GLOBAL_TIMER) += arm_global_timer.o
obj-$(CONFIG_ARMV7M_SYSTICK) += armv7m_systick.o
obj-$(CONFIG_ARM_TIMER_SP804) += timer-sp804.o
-obj-$(CONFIG_CLKSRC_METAG_GENERIC) += metag_generic.o
obj-$(CONFIG_ARCH_HAS_TICK_BROADCAST) += dummy_timer.o
obj-$(CONFIG_KEYSTONE_TIMER) += timer-keystone.o
obj-$(CONFIG_INTEGRATOR_AP_TIMER) += timer-integrator-ap.o
diff --git a/drivers/clocksource/metag_generic.c b/drivers/clocksource/metag_generic.c
deleted file mode 100644
index 3e5fa2f62d5f..000000000000
diff --git a/include/clocksource/metag_generic.h b/include/clocksource/metag_generic.h
deleted file mode 100644
index ac17e7d06cfb..000000000000
diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h
index 5172ad0daa7c..a456be2f10c3 100644
--- a/include/linux/cpuhotplug.h
+++ b/include/linux/cpuhotplug.h
@@ -122,7 +122,6 @@ enum cpuhp_state {
CPUHP_AP_JCORE_TIMER_STARTING,
CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING,
CPUHP_AP_ARM_TWD_STARTING,
- CPUHP_AP_METAG_TIMER_STARTING,
CPUHP_AP_QCOM_TIMER_STARTING,
CPUHP_AP_ARMADA_TIMER_STARTING,
CPUHP_AP_MARCO_TIMER_STARTING,
--
2.13.6


2018-02-21 23:45:28

by James Hogan

[permalink] [raw]
Subject: [PATCH 05/13] irqchip: Remove metag irqchip drivers

Now that arch/metag/ has been removed, remove the two metag irqchip
drivers. They are of no value without the architecture code.
- irq-metag: Meta internal (HWSTATMETA) interrupt code.
- irq-metag-ext: Meta External interrupt code.

Signed-off-by: James Hogan <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: [email protected]
---
drivers/irqchip/Makefile | 2 -
drivers/irqchip/irq-metag-ext.c | 871 --------------------------------------
drivers/irqchip/irq-metag.c | 343 ---------------
include/linux/irqchip/metag-ext.h | 34 --
include/linux/irqchip/metag.h | 25 --
5 files changed, 1275 deletions(-)
delete mode 100644 drivers/irqchip/irq-metag-ext.c
delete mode 100644 drivers/irqchip/irq-metag.c
delete mode 100644 include/linux/irqchip/metag-ext.h
delete mode 100644 include/linux/irqchip/metag.h

diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile
index d27e3e3619e0..b5b1f4c93413 100644
--- a/drivers/irqchip/Makefile
+++ b/drivers/irqchip/Makefile
@@ -15,8 +15,6 @@ obj-$(CONFIG_IRQ_MXS) += irq-mxs.o
obj-$(CONFIG_ARCH_TEGRA) += irq-tegra.o
obj-$(CONFIG_ARCH_S3C24XX) += irq-s3c24xx.o
obj-$(CONFIG_DW_APB_ICTL) += irq-dw-apb-ictl.o
-obj-$(CONFIG_METAG) += irq-metag-ext.o
-obj-$(CONFIG_METAG_PERFCOUNTER_IRQS) += irq-metag.o
obj-$(CONFIG_CLPS711X_IRQCHIP) += irq-clps711x.o
obj-$(CONFIG_OMPIC) += irq-ompic.o
obj-$(CONFIG_OR1K_PIC) += irq-or1k-pic.o
diff --git a/drivers/irqchip/irq-metag-ext.c b/drivers/irqchip/irq-metag-ext.c
deleted file mode 100644
index e67483161f0f..000000000000
diff --git a/drivers/irqchip/irq-metag.c b/drivers/irqchip/irq-metag.c
deleted file mode 100644
index 857b946747eb..000000000000
diff --git a/include/linux/irqchip/metag-ext.h b/include/linux/irqchip/metag-ext.h
deleted file mode 100644
index d120496370b9..000000000000
diff --git a/include/linux/irqchip/metag.h b/include/linux/irqchip/metag.h
deleted file mode 100644
index 0adcf449e4e4..000000000000
--
2.13.6


2018-02-21 23:45:47

by James Hogan

[permalink] [raw]
Subject: [PATCH 03/13] docs: Remove remaining references to metag

Remove any remaining references to the Meta architecture in
Documentation/, primarily from Documentation/features/.

Signed-off-by: James Hogan <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
Documentation/dev-tools/kmemleak.rst | 2 +-
Documentation/features/core/BPF-JIT/arch-support.txt | 1 -
Documentation/features/core/generic-idle-thread/arch-support.txt | 1 -
Documentation/features/core/jump-labels/arch-support.txt | 1 -
Documentation/features/core/tracehook/arch-support.txt | 1 -
Documentation/features/debug/KASAN/arch-support.txt | 1 -
Documentation/features/debug/gcov-profile-all/arch-support.txt | 1 -
Documentation/features/debug/kgdb/arch-support.txt | 1 -
Documentation/features/debug/kprobes-on-ftrace/arch-support.txt | 1 -
Documentation/features/debug/kprobes/arch-support.txt | 1 -
Documentation/features/debug/kretprobes/arch-support.txt | 1 -
Documentation/features/debug/optprobes/arch-support.txt | 1 -
Documentation/features/debug/stackprotector/arch-support.txt | 1 -
Documentation/features/debug/uprobes/arch-support.txt | 1 -
Documentation/features/debug/user-ret-profiler/arch-support.txt | 1 -
Documentation/features/io/dma-api-debug/arch-support.txt | 1 -
Documentation/features/io/dma-contiguous/arch-support.txt | 1 -
Documentation/features/io/sg-chain/arch-support.txt | 1 -
Documentation/features/lib/strncasecmp/arch-support.txt | 1 -
Documentation/features/locking/cmpxchg-local/arch-support.txt | 1 -
Documentation/features/locking/lockdep/arch-support.txt | 1 -
Documentation/features/locking/queued-rwlocks/arch-support.txt | 1 -
Documentation/features/locking/queued-spinlocks/arch-support.txt | 1 -
Documentation/features/locking/rwsem-optimized/arch-support.txt | 1 -
Documentation/features/perf/kprobes-event/arch-support.txt | 1 -
Documentation/features/perf/perf-regs/arch-support.txt | 1 -
Documentation/features/perf/perf-stackdump/arch-support.txt | 1 -
Documentation/features/sched/membarrier-sync-core/arch-support.txt | 1 -
Documentation/features/sched/numa-balancing/arch-support.txt | 1 -
Documentation/features/seccomp/seccomp-filter/arch-support.txt | 1 -
Documentation/features/time/arch-tick-broadcast/arch-support.txt | 1 -
Documentation/features/time/clockevents/arch-support.txt | 1 -
Documentation/features/time/context-tracking/arch-support.txt | 1 -
Documentation/features/time/irq-time-acct/arch-support.txt | 1 -
Documentation/features/time/modern-timekeeping/arch-support.txt | 1 -
Documentation/features/time/virt-cpuacct/arch-support.txt | 1 -
Documentation/features/vm/ELF-ASLR/arch-support.txt | 1 -
Documentation/features/vm/PG_uncached/arch-support.txt | 1 -
Documentation/features/vm/THP/arch-support.txt | 1 -
Documentation/features/vm/TLB/arch-support.txt | 1 -
Documentation/features/vm/huge-vmap/arch-support.txt | 1 -
Documentation/features/vm/ioremap_prot/arch-support.txt | 1 -
Documentation/features/vm/numa-memblock/arch-support.txt | 1 -
Documentation/features/vm/pte_special/arch-support.txt | 1 -
44 files changed, 1 insertion(+), 44 deletions(-)

diff --git a/Documentation/dev-tools/kmemleak.rst b/Documentation/dev-tools/kmemleak.rst
index cb8862659178..e6f51260ff32 100644
--- a/Documentation/dev-tools/kmemleak.rst
+++ b/Documentation/dev-tools/kmemleak.rst
@@ -8,7 +8,7 @@ with the difference that the orphan objects are not freed but only
reported via /sys/kernel/debug/kmemleak. A similar method is used by the
Valgrind tool (``memcheck --leak-check``) to detect the memory leaks in
user-space applications.
-Kmemleak is supported on x86, arm, powerpc, sparc, sh, microblaze, ppc, mips, s390, metag and tile.
+Kmemleak is supported on x86, arm, powerpc, sparc, sh, microblaze, ppc, mips, s390 and tile.

Usage
-----
diff --git a/Documentation/features/core/BPF-JIT/arch-support.txt b/Documentation/features/core/BPF-JIT/arch-support.txt
index 5575d2d09625..b0634ec01881 100644
--- a/Documentation/features/core/BPF-JIT/arch-support.txt
+++ b/Documentation/features/core/BPF-JIT/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/core/generic-idle-thread/arch-support.txt b/Documentation/features/core/generic-idle-thread/arch-support.txt
index abb5f271a792..e2a1a385efd3 100644
--- a/Documentation/features/core/generic-idle-thread/arch-support.txt
+++ b/Documentation/features/core/generic-idle-thread/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | ok |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/core/jump-labels/arch-support.txt b/Documentation/features/core/jump-labels/arch-support.txt
index dbdaffcc5110..dafcea38fe5e 100644
--- a/Documentation/features/core/jump-labels/arch-support.txt
+++ b/Documentation/features/core/jump-labels/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/core/tracehook/arch-support.txt b/Documentation/features/core/tracehook/arch-support.txt
index dfb638c2f842..3d7886fcb6a9 100644
--- a/Documentation/features/core/tracehook/arch-support.txt
+++ b/Documentation/features/core/tracehook/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | ok |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | ok |
diff --git a/Documentation/features/debug/KASAN/arch-support.txt b/Documentation/features/debug/KASAN/arch-support.txt
index 3406fae833c3..63598b0e8ea6 100644
--- a/Documentation/features/debug/KASAN/arch-support.txt
+++ b/Documentation/features/debug/KASAN/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/debug/gcov-profile-all/arch-support.txt b/Documentation/features/debug/gcov-profile-all/arch-support.txt
index 830dbe801aaf..13b3b3dfe7f2 100644
--- a/Documentation/features/debug/gcov-profile-all/arch-support.txt
+++ b/Documentation/features/debug/gcov-profile-all/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | ok |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/debug/kgdb/arch-support.txt b/Documentation/features/debug/kgdb/arch-support.txt
index 0217bf6e942d..cb4792cf0f98 100644
--- a/Documentation/features/debug/kgdb/arch-support.txt
+++ b/Documentation/features/debug/kgdb/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | ok |
| mips: | ok |
| mn10300: | ok |
diff --git a/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt b/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt
index 1e84be3c142e..2046539489fe 100644
--- a/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt
+++ b/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/debug/kprobes/arch-support.txt b/Documentation/features/debug/kprobes/arch-support.txt
index 529f66eda679..bfb3546a70d0 100644
--- a/Documentation/features/debug/kprobes/arch-support.txt
+++ b/Documentation/features/debug/kprobes/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/debug/kretprobes/arch-support.txt b/Documentation/features/debug/kretprobes/arch-support.txt
index 43353242e439..cb2213bfadc5 100644
--- a/Documentation/features/debug/kretprobes/arch-support.txt
+++ b/Documentation/features/debug/kretprobes/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/debug/optprobes/arch-support.txt b/Documentation/features/debug/optprobes/arch-support.txt
index f559f1ba5416..219aa64ca3f5 100644
--- a/Documentation/features/debug/optprobes/arch-support.txt
+++ b/Documentation/features/debug/optprobes/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/debug/stackprotector/arch-support.txt b/Documentation/features/debug/stackprotector/arch-support.txt
index 59a4c9ffb7f3..904864c3f18c 100644
--- a/Documentation/features/debug/stackprotector/arch-support.txt
+++ b/Documentation/features/debug/stackprotector/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/debug/uprobes/arch-support.txt b/Documentation/features/debug/uprobes/arch-support.txt
index 53ed42b0e7e5..d092f000e6bb 100644
--- a/Documentation/features/debug/uprobes/arch-support.txt
+++ b/Documentation/features/debug/uprobes/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/debug/user-ret-profiler/arch-support.txt b/Documentation/features/debug/user-ret-profiler/arch-support.txt
index 149443936de9..9e9e195b6d30 100644
--- a/Documentation/features/debug/user-ret-profiler/arch-support.txt
+++ b/Documentation/features/debug/user-ret-profiler/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/io/dma-api-debug/arch-support.txt b/Documentation/features/io/dma-api-debug/arch-support.txt
index 6be920643be6..ba9e169859c4 100644
--- a/Documentation/features/io/dma-api-debug/arch-support.txt
+++ b/Documentation/features/io/dma-api-debug/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | ok |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/io/dma-contiguous/arch-support.txt b/Documentation/features/io/dma-contiguous/arch-support.txt
index 0eb08e1e32b8..35b501f2c117 100644
--- a/Documentation/features/io/dma-contiguous/arch-support.txt
+++ b/Documentation/features/io/dma-contiguous/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/io/sg-chain/arch-support.txt b/Documentation/features/io/sg-chain/arch-support.txt
index 514ad3468aa5..42c078dff18b 100644
--- a/Documentation/features/io/sg-chain/arch-support.txt
+++ b/Documentation/features/io/sg-chain/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/lib/strncasecmp/arch-support.txt b/Documentation/features/lib/strncasecmp/arch-support.txt
index 532c6f0fc15c..b10c21f14739 100644
--- a/Documentation/features/lib/strncasecmp/arch-support.txt
+++ b/Documentation/features/lib/strncasecmp/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/locking/cmpxchg-local/arch-support.txt b/Documentation/features/locking/cmpxchg-local/arch-support.txt
index f3eec26c8cf8..3b87fd37bae8 100644
--- a/Documentation/features/locking/cmpxchg-local/arch-support.txt
+++ b/Documentation/features/locking/cmpxchg-local/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/locking/lockdep/arch-support.txt b/Documentation/features/locking/lockdep/arch-support.txt
index 9756abc680a7..cefcd720f04e 100644
--- a/Documentation/features/locking/lockdep/arch-support.txt
+++ b/Documentation/features/locking/lockdep/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | ok |
| microblaze: | ok |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/locking/queued-rwlocks/arch-support.txt b/Documentation/features/locking/queued-rwlocks/arch-support.txt
index 62f4ee5c156c..da6c7e37141c 100644
--- a/Documentation/features/locking/queued-rwlocks/arch-support.txt
+++ b/Documentation/features/locking/queued-rwlocks/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/locking/queued-spinlocks/arch-support.txt b/Documentation/features/locking/queued-spinlocks/arch-support.txt
index 321b32f6e63c..1e5dbcdd1c76 100644
--- a/Documentation/features/locking/queued-spinlocks/arch-support.txt
+++ b/Documentation/features/locking/queued-spinlocks/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/locking/rwsem-optimized/arch-support.txt b/Documentation/features/locking/rwsem-optimized/arch-support.txt
index 79bfa4d6e41f..b79e92288112 100644
--- a/Documentation/features/locking/rwsem-optimized/arch-support.txt
+++ b/Documentation/features/locking/rwsem-optimized/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/perf/kprobes-event/arch-support.txt b/Documentation/features/perf/kprobes-event/arch-support.txt
index 00f1606bbf45..6418ccc6fc34 100644
--- a/Documentation/features/perf/kprobes-event/arch-support.txt
+++ b/Documentation/features/perf/kprobes-event/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/perf/perf-regs/arch-support.txt b/Documentation/features/perf/perf-regs/arch-support.txt
index 7d516eacf7b9..3b3392ac6466 100644
--- a/Documentation/features/perf/perf-regs/arch-support.txt
+++ b/Documentation/features/perf/perf-regs/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/perf/perf-stackdump/arch-support.txt b/Documentation/features/perf/perf-stackdump/arch-support.txt
index f974b8df5d82..4594cb28fbc8 100644
--- a/Documentation/features/perf/perf-stackdump/arch-support.txt
+++ b/Documentation/features/perf/perf-stackdump/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/sched/membarrier-sync-core/arch-support.txt b/Documentation/features/sched/membarrier-sync-core/arch-support.txt
index 2c815a7f1ba7..42eaab4d439d 100644
--- a/Documentation/features/sched/membarrier-sync-core/arch-support.txt
+++ b/Documentation/features/sched/membarrier-sync-core/arch-support.txt
@@ -42,7 +42,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/sched/numa-balancing/arch-support.txt b/Documentation/features/sched/numa-balancing/arch-support.txt
index 1d3c0f669152..4e67833aae66 100644
--- a/Documentation/features/sched/numa-balancing/arch-support.txt
+++ b/Documentation/features/sched/numa-balancing/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | .. |
| m68k: | .. |
- | metag: | .. |
| microblaze: | .. |
| mips: | TODO |
| mn10300: | .. |
diff --git a/Documentation/features/seccomp/seccomp-filter/arch-support.txt b/Documentation/features/seccomp/seccomp-filter/arch-support.txt
index a32d5b207679..c5d8b397a693 100644
--- a/Documentation/features/seccomp/seccomp-filter/arch-support.txt
+++ b/Documentation/features/seccomp/seccomp-filter/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/time/arch-tick-broadcast/arch-support.txt b/Documentation/features/time/arch-tick-broadcast/arch-support.txt
index caee8f64d1bc..9e4999136881 100644
--- a/Documentation/features/time/arch-tick-broadcast/arch-support.txt
+++ b/Documentation/features/time/arch-tick-broadcast/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/time/clockevents/arch-support.txt b/Documentation/features/time/clockevents/arch-support.txt
index 1cd87f6cd07d..f90cb64c640b 100644
--- a/Documentation/features/time/clockevents/arch-support.txt
+++ b/Documentation/features/time/clockevents/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | ok |
- | metag: | ok |
| microblaze: | ok |
| mips: | ok |
| mn10300: | ok |
diff --git a/Documentation/features/time/context-tracking/arch-support.txt b/Documentation/features/time/context-tracking/arch-support.txt
index e6d7c7b2253c..eb4e5d32a2e9 100644
--- a/Documentation/features/time/context-tracking/arch-support.txt
+++ b/Documentation/features/time/context-tracking/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/time/irq-time-acct/arch-support.txt b/Documentation/features/time/irq-time-acct/arch-support.txt
index 15c6071788ae..02b7441f360f 100644
--- a/Documentation/features/time/irq-time-acct/arch-support.txt
+++ b/Documentation/features/time/irq-time-acct/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | .. |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/time/modern-timekeeping/arch-support.txt b/Documentation/features/time/modern-timekeeping/arch-support.txt
index baee7611ba3d..b3eb6fe6bc27 100644
--- a/Documentation/features/time/modern-timekeeping/arch-support.txt
+++ b/Documentation/features/time/modern-timekeeping/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | ok |
| microblaze: | ok |
| mips: | ok |
| mn10300: | ok |
diff --git a/Documentation/features/time/virt-cpuacct/arch-support.txt b/Documentation/features/time/virt-cpuacct/arch-support.txt
index 9129530cb73c..a1bd77fd723a 100644
--- a/Documentation/features/time/virt-cpuacct/arch-support.txt
+++ b/Documentation/features/time/virt-cpuacct/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/vm/ELF-ASLR/arch-support.txt b/Documentation/features/vm/ELF-ASLR/arch-support.txt
index f6829af3255f..3f926177833c 100644
--- a/Documentation/features/vm/ELF-ASLR/arch-support.txt
+++ b/Documentation/features/vm/ELF-ASLR/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/vm/PG_uncached/arch-support.txt b/Documentation/features/vm/PG_uncached/arch-support.txt
index 1a09ea99d486..4c8f65d525d7 100644
--- a/Documentation/features/vm/PG_uncached/arch-support.txt
+++ b/Documentation/features/vm/PG_uncached/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/vm/THP/arch-support.txt b/Documentation/features/vm/THP/arch-support.txt
index d170e6236503..d121dc2e3e5e 100644
--- a/Documentation/features/vm/THP/arch-support.txt
+++ b/Documentation/features/vm/THP/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | .. |
| m68k: | .. |
- | metag: | TODO |
| microblaze: | .. |
| mips: | ok |
| mn10300: | .. |
diff --git a/Documentation/features/vm/TLB/arch-support.txt b/Documentation/features/vm/TLB/arch-support.txt
index abfab4080a91..af233d2d82cf 100644
--- a/Documentation/features/vm/TLB/arch-support.txt
+++ b/Documentation/features/vm/TLB/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | .. |
- | metag: | TODO |
| microblaze: | .. |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/vm/huge-vmap/arch-support.txt b/Documentation/features/vm/huge-vmap/arch-support.txt
index f81f09b22b08..45c74fbe6805 100644
--- a/Documentation/features/vm/huge-vmap/arch-support.txt
+++ b/Documentation/features/vm/huge-vmap/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/vm/ioremap_prot/arch-support.txt b/Documentation/features/vm/ioremap_prot/arch-support.txt
index 0cc3e11c42e2..6cd436af0cc8 100644
--- a/Documentation/features/vm/ioremap_prot/arch-support.txt
+++ b/Documentation/features/vm/ioremap_prot/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
diff --git a/Documentation/features/vm/numa-memblock/arch-support.txt b/Documentation/features/vm/numa-memblock/arch-support.txt
index 9a3fdac42ce1..2db895856da6 100644
--- a/Documentation/features/vm/numa-memblock/arch-support.txt
+++ b/Documentation/features/vm/numa-memblock/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | ok |
| m32r: | TODO |
| m68k: | .. |
- | metag: | ok |
| microblaze: | ok |
| mips: | ok |
| mn10300: | TODO |
diff --git a/Documentation/features/vm/pte_special/arch-support.txt b/Documentation/features/vm/pte_special/arch-support.txt
index dfaa39e664ff..ccb15b6da42f 100644
--- a/Documentation/features/vm/pte_special/arch-support.txt
+++ b/Documentation/features/vm/pte_special/arch-support.txt
@@ -19,7 +19,6 @@
| ia64: | TODO |
| m32r: | TODO |
| m68k: | TODO |
- | metag: | TODO |
| microblaze: | TODO |
| mips: | TODO |
| mn10300: | TODO |
--
2.13.6


2018-02-21 23:46:04

by James Hogan

[permalink] [raw]
Subject: [PATCH 02/13] docs: Remove metag docs

Now that arch/metag/ has been removed, remove Meta architecture specific
documentation from the Documentation/ directory.

Signed-off-by: James Hogan <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
Documentation/00-INDEX | 2 -
Documentation/admin-guide/kernel-parameters.txt | 4 -
Documentation/devicetree/bindings/metag/meta.txt | 30 ---
Documentation/metag/00-INDEX | 4 -
Documentation/metag/kernel-ABI.txt | 256 -----------------------
5 files changed, 296 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/metag/meta.txt
delete mode 100644 Documentation/metag/00-INDEX
delete mode 100644 Documentation/metag/kernel-ABI.txt

diff --git a/Documentation/00-INDEX b/Documentation/00-INDEX
index 7f3a0728ccf2..eae1e7193f50 100644
--- a/Documentation/00-INDEX
+++ b/Documentation/00-INDEX
@@ -276,8 +276,6 @@ memory-hotplug.txt
- Hotpluggable memory support, how to use and current status.
men-chameleon-bus.txt
- info on MEN chameleon bus.
-metag/
- - directory with info about Linux on Meta architecture.
mic/
- Intel Many Integrated Core (MIC) architecture device driver.
mips/
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 1d1d53f85ddd..30a8d0635898 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -1347,10 +1347,6 @@
If specified, z/VM IUCV HVC accepts connections
from listed z/VM user IDs only.

- hwthread_map= [METAG] Comma-separated list of Linux cpu id to
- hardware thread id mappings.
- Format: <cpu>:<hwthread>
-
keep_bootcon [KNL]
Do not unregister boot console at start. This is only
useful for debugging when something happens in the window
diff --git a/Documentation/devicetree/bindings/metag/meta.txt b/Documentation/devicetree/bindings/metag/meta.txt
deleted file mode 100644
index f4457f57ab08..000000000000
diff --git a/Documentation/metag/00-INDEX b/Documentation/metag/00-INDEX
deleted file mode 100644
index db11c513bd5c..000000000000
diff --git a/Documentation/metag/kernel-ABI.txt b/Documentation/metag/kernel-ABI.txt
deleted file mode 100644
index 628216603198..000000000000
--
2.13.6


2018-02-22 01:28:11

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH 11/13] watchdog: imgpdc: Drop METAG dependency

On 02/21/2018 03:38 PM, James Hogan wrote:
> Now that arch/metag/ has been removed, remove the METAG dependency from
> the IMG IR device driver. The hardware is also present on MIPS SoCs so
> the driver still has value.
>
> Signed-off-by: James Hogan <[email protected]>
> Cc: Wim Van Sebroeck <[email protected]>
> Cc: Guenter Roeck <[email protected]>
> Cc: [email protected]
> Cc: [email protected]

Acked-by: Guenter Roeck <[email protected]>

> ---
> drivers/watchdog/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index aff773bcebdb..152268010c45 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -1602,7 +1602,7 @@ config BCM7038_WDT
> config IMGPDC_WDT
> tristate "Imagination Technologies PDC Watchdog Timer"
> depends on HAS_IOMEM
> - depends on METAG || MIPS || COMPILE_TEST
> + depends on MIPS || COMPILE_TEST
> select WATCHDOG_CORE
> help
> Driver for Imagination Technologies PowerDown Controller
>


2018-02-22 01:53:17

by Steven Rostedt

[permalink] [raw]
Subject: Re: [PATCH 04/13] Drop a bunch of metag references

On Wed, 21 Feb 2018 23:38:16 +0000
James Hogan <[email protected]> wrote:

> Now that arch/metag/ has been removed, drop a bunch of metag references
> in various codes across the whole tree:
> - VM_GROWSUP and __VM_ARCH_PECIFIC_1.
> - MT_METAG_* ELF note types.
> - METAG Kconfig dependencies (FRAME_POINTER) and ranges
> (MAX_STACK_SIZE_MB).
> - metag cases in tools (checkstack.pl, recordmcount.c, perf).
>
> Signed-off-by: James Hogan <[email protected]>
> Cc: Steven Rostedt <[email protected]>
> Cc: Ingo Molnar <[email protected]>
> Cc: Peter Zijlstra <[email protected]>
> Cc: Arnaldo Carvalho de Melo <[email protected]>
> Cc: Alexander Shishkin <[email protected]>
> Cc: Jiri Olsa <[email protected]>
> Cc: Namhyung Kim <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> ---
> include/linux/mm.h | 2 --

> include/trace/events/mmflags.h | 2 +-

> include/uapi/linux/elf.h | 3 ---
> lib/Kconfig.debug | 2 +-
> mm/Kconfig | 7 +++----
> scripts/checkstack.pl | 4 ----

> scripts/recordmcount.c | 20 --------------------

Acked-by: Steven Rostedt (VMware) <[email protected]>

-- Steve


> tools/perf/perf-sys.h | 4 ----
> 8 files changed, 5 insertions(+), 39 deletions(-)



> diff --git a/include/trace/events/mmflags.h b/include/trace/events/mmflags.h
> index dbe1bb058c09..a81cffb76d89 100644
> --- a/include/trace/events/mmflags.h
> +++ b/include/trace/events/mmflags.h
> @@ -115,7 +115,7 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" )
> #define __VM_ARCH_SPECIFIC_1 {VM_PAT, "pat" }
> #elif defined(CONFIG_PPC)
> #define __VM_ARCH_SPECIFIC_1 {VM_SAO, "sao" }
> -#elif defined(CONFIG_PARISC) || defined(CONFIG_METAG) || defined(CONFIG_IA64)
> +#elif defined(CONFIG_PARISC) || defined(CONFIG_IA64)
> #define __VM_ARCH_SPECIFIC_1 {VM_GROWSUP, "growsup" }
> #elif !defined(CONFIG_MMU)
> #define __VM_ARCH_SPECIFIC_1 {VM_MAPPED_COPY,"mappedcopy" }


> diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
> index 16e086dcc567..8c9691c3329e 100644
> --- a/scripts/recordmcount.c
> +++ b/scripts/recordmcount.c
> @@ -33,20 +33,6 @@
> #include <string.h>
> #include <unistd.h>
>
> -/*
> - * glibc synced up and added the metag number but didn't add the relocations.
> - * Work around this in a crude manner for now.
> - */
> -#ifndef EM_METAG
> -#define EM_METAG 174
> -#endif
> -#ifndef R_METAG_ADDR32
> -#define R_METAG_ADDR32 2
> -#endif
> -#ifndef R_METAG_NONE
> -#define R_METAG_NONE 3
> -#endif
> -
> #ifndef EM_AARCH64
> #define EM_AARCH64 183
> #define R_AARCH64_NONE 0
> @@ -538,12 +524,6 @@ do_file(char const *const fname)
> gpfx = '_';
> break;
> case EM_IA_64: reltype = R_IA64_IMM64; gpfx = '_'; break;
> - case EM_METAG: reltype = R_METAG_ADDR32;
> - altmcount = "_mcount_wrapper";
> - rel_type_nop = R_METAG_NONE;
> - /* We happen to have the same requirement as MIPS */
> - is_fake_mcount32 = MIPS32_is_fake_mcount;
> - break;
> case EM_MIPS: /* reltype: e_class */ gpfx = '_'; break;
> case EM_PPC: reltype = R_PPC_ADDR32; gpfx = '_'; break;
> case EM_PPC64: reltype = R_PPC64_ADDR64; gpfx = '_'; break;


2018-02-22 03:53:38

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH 01/13] metag: Remove arch/metag/

On 02/21/2018 03:38 PM, James Hogan wrote:
> The earliest Meta architecture port of Linux I have a record of was an
> import of a Meta port of Linux v2.4.1 in February 2004, which was worked
> on significantly over the next few years by Graham Whaley, Will Newton,
> Matt Fleming, myself and others.
>
> Eventually the port was merged into mainline in v3.9 in March 2013, not
> long after Imagination Technologies bought MIPS Technologies and shifted
> its CPU focus over to the MIPS architecture.
>
> As a result, though the port was maintained for a while, kept on life
> support for a while longer, and useful for testing a few specific
> drivers for which I don't have ready access to the equivalent MIPS
> hardware, it is now essentially dead with no users.
>
> It is also stuck using an out-of-tree toolchain based on GCC 4.2.4 which
> is no longer maintained, now struggles to build modern kernels due to
> toolchain bugs, and doesn't itself build with a modern GCC. The latest
> buildroot port is still using an old uClibc snapshot which is no longer
> served, and the latest uClibc doesn't build with GCC 4.2.4.
>
> So lets call it a day and drop the Meta architecture port from the
> kernel. RIP Meta.
>
> Signed-off-by: James Hogan <[email protected]>
> Link: https://lkml.kernel.org/r/[email protected]
> Cc: Guenter Roeck <[email protected]>
> Cc: [email protected]

FWIW:

Reviewed-by: Guenter Roeck <[email protected]>

Did you drop the definition of CPUHP_AP_PERF_METAG_STARTING ?
I browsed through the patches but didn't find where it was dropped.

Also, how did you generate this patch, and can you try to apply it yourself ?
I tried to apply it, but neither git am nor patch worked for me. This patch
also doesn't show up on patchwork.kernel.org which is odd.

Guenter

> ---
> arch/metag/Kconfig | 287 ------
> arch/metag/Kconfig.debug | 34 -
> arch/metag/Kconfig.soc | 69 --
> arch/metag/Makefile | 89 --
> arch/metag/boot/.gitignore | 3 -
> arch/metag/boot/Makefile | 68 --
> arch/metag/boot/dts/Makefile | 16 -
> arch/metag/boot/dts/skeleton.dts | 10 -
> arch/metag/boot/dts/skeleton.dtsi | 15 -
> arch/metag/boot/dts/tz1090.dtsi | 108 ---
> arch/metag/boot/dts/tz1090_generic.dts | 10 -
> arch/metag/configs/meta1_defconfig | 39 -
> arch/metag/configs/meta2_defconfig | 40 -
> arch/metag/configs/meta2_smp_defconfig | 41 -
> arch/metag/configs/tz1090_defconfig | 42 -
> arch/metag/include/asm/Kbuild | 33 -
> arch/metag/include/asm/atomic.h | 49 --
> arch/metag/include/asm/atomic_lnkget.h | 204 -----
> arch/metag/include/asm/atomic_lock1.h | 157 ----
> arch/metag/include/asm/barrier.h | 85 --
> arch/metag/include/asm/bitops.h | 127 ---
> arch/metag/include/asm/bug.h | 13 -
> arch/metag/include/asm/cache.h | 24 -
> arch/metag/include/asm/cacheflush.h | 251 ------
> arch/metag/include/asm/cachepart.h | 43 -
> arch/metag/include/asm/checksum.h | 93 --
> arch/metag/include/asm/clock.h | 59 --
> arch/metag/include/asm/cmpxchg.h | 64 --
> arch/metag/include/asm/cmpxchg_irq.h | 43 -
> arch/metag/include/asm/cmpxchg_lnkget.h | 87 --
> arch/metag/include/asm/cmpxchg_lock1.h | 49 --
> arch/metag/include/asm/core_reg.h | 36 -
> arch/metag/include/asm/cpu.h | 15 -
> arch/metag/include/asm/da.h | 44 -
> arch/metag/include/asm/delay.h | 30 -
> arch/metag/include/asm/div64.h | 13 -
> arch/metag/include/asm/dma-mapping.h | 12 -
> arch/metag/include/asm/elf.h | 126 ---
> arch/metag/include/asm/fixmap.h | 69 --
> arch/metag/include/asm/ftrace.h | 24 -
> arch/metag/include/asm/global_lock.h | 101 ---
> arch/metag/include/asm/highmem.h | 62 --
> arch/metag/include/asm/hugetlb.h | 75 --
> arch/metag/include/asm/hwthread.h | 41 -
> arch/metag/include/asm/io.h | 170 ----
> arch/metag/include/asm/irq.h | 38 -
> arch/metag/include/asm/irqflags.h | 94 --
> arch/metag/include/asm/l2cache.h | 259 ------
> arch/metag/include/asm/linkage.h | 8 -
> arch/metag/include/asm/mach/arch.h | 86 --
> arch/metag/include/asm/metag_isa.h | 81 --
> arch/metag/include/asm/metag_mem.h | 1109 -----------------------
> arch/metag/include/asm/metag_regs.h | 1184 -------------------------
> arch/metag/include/asm/mman.h | 12 -
> arch/metag/include/asm/mmu.h | 78 --
> arch/metag/include/asm/mmu_context.h | 115 ---
> arch/metag/include/asm/mmzone.h | 43 -
> arch/metag/include/asm/module.h | 38 -
> arch/metag/include/asm/page.h | 129 ---
> arch/metag/include/asm/perf_event.h | 4 -
> arch/metag/include/asm/pgalloc.h | 83 --
> arch/metag/include/asm/pgtable-bits.h | 105 ---
> arch/metag/include/asm/pgtable.h | 270 ------
> arch/metag/include/asm/processor.h | 201 -----
> arch/metag/include/asm/ptrace.h | 61 --
> arch/metag/include/asm/setup.h | 10 -
> arch/metag/include/asm/smp.h | 28 -
> arch/metag/include/asm/sparsemem.h | 14 -
> arch/metag/include/asm/spinlock.h | 19 -
> arch/metag/include/asm/spinlock_lnkget.h | 213 -----
> arch/metag/include/asm/spinlock_lock1.h | 165 ----
> arch/metag/include/asm/spinlock_types.h | 21 -
> arch/metag/include/asm/stacktrace.h | 21 -
> arch/metag/include/asm/string.h | 14 -
> arch/metag/include/asm/switch.h | 21 -
> arch/metag/include/asm/syscall.h | 104 ---
> arch/metag/include/asm/syscalls.h | 40 -
> arch/metag/include/asm/tbx.h | 1420 ------------------------------
> arch/metag/include/asm/tcm.h | 31 -
> arch/metag/include/asm/thread_info.h | 141 ---
> arch/metag/include/asm/tlb.h | 37 -
> arch/metag/include/asm/tlbflush.h | 78 --
> arch/metag/include/asm/topology.h | 28 -
> arch/metag/include/asm/traps.h | 48 -
> arch/metag/include/asm/uaccess.h | 213 -----
> arch/metag/include/asm/unistd.h | 12 -
> arch/metag/include/asm/user_gateway.h | 45 -
> arch/metag/include/uapi/asm/Kbuild | 31 -
> arch/metag/include/uapi/asm/byteorder.h | 2 -
> arch/metag/include/uapi/asm/ech.h | 16 -
> arch/metag/include/uapi/asm/ptrace.h | 114 ---
> arch/metag/include/uapi/asm/sigcontext.h | 32 -
> arch/metag/include/uapi/asm/siginfo.h | 16 -
> arch/metag/include/uapi/asm/swab.h | 27 -
> arch/metag/include/uapi/asm/unistd.h | 24 -
> arch/metag/kernel/.gitignore | 1 -
> arch/metag/kernel/Makefile | 40 -
> arch/metag/kernel/asm-offsets.c | 15 -
> arch/metag/kernel/cachepart.c | 132 ---
> arch/metag/kernel/clock.c | 110 ---
> arch/metag/kernel/core_reg.c | 118 ---
> arch/metag/kernel/da.c | 25 -
> arch/metag/kernel/devtree.c | 57 --
> arch/metag/kernel/dma.c | 588 -------------
> arch/metag/kernel/ftrace.c | 121 ---
> arch/metag/kernel/ftrace_stub.S | 62 --
> arch/metag/kernel/head.S | 66 --
> arch/metag/kernel/irq.c | 293 ------
> arch/metag/kernel/kick.c | 110 ---
> arch/metag/kernel/machines.c | 21 -
> arch/metag/kernel/metag_ksyms.c | 55 --
> arch/metag/kernel/module.c | 284 ------
> arch/metag/kernel/perf/Makefile | 3 -
> arch/metag/kernel/perf/perf_event.c | 879 ------------------
> arch/metag/kernel/perf/perf_event.h | 106 ---
> arch/metag/kernel/perf_callchain.c | 97 --
> arch/metag/kernel/process.c | 448 ----------
> arch/metag/kernel/ptrace.c | 427 ---------
> arch/metag/kernel/setup.c | 622 -------------
> arch/metag/kernel/signal.c | 336 -------
> arch/metag/kernel/smp.c | 668 --------------
> arch/metag/kernel/stacktrace.c | 187 ----
> arch/metag/kernel/sys_metag.c | 181 ----
> arch/metag/kernel/tbiunexp.S | 23 -
> arch/metag/kernel/tcm.c | 152 ----
> arch/metag/kernel/time.c | 26 -
> arch/metag/kernel/topology.c | 78 --
> arch/metag/kernel/traps.c | 992 ---------------------
> arch/metag/kernel/user_gateway.S | 98 ---
> arch/metag/kernel/vmlinux.lds.S | 74 --
> arch/metag/lib/Makefile | 23 -
> arch/metag/lib/ashldi3.S | 34 -
> arch/metag/lib/ashrdi3.S | 34 -
> arch/metag/lib/checksum.c | 167 ----
> arch/metag/lib/clear_page.S | 18 -
> arch/metag/lib/cmpdi2.S | 33 -
> arch/metag/lib/copy_page.S | 21 -
> arch/metag/lib/delay.c | 57 --
> arch/metag/lib/div64.S | 109 ---
> arch/metag/lib/divsi3.S | 101 ---
> arch/metag/lib/ip_fast_csum.S | 33 -
> arch/metag/lib/lshrdi3.S | 34 -
> arch/metag/lib/memcpy.S | 186 ----
> arch/metag/lib/memmove.S | 346 --------
> arch/metag/lib/memset.S | 87 --
> arch/metag/lib/modsi3.S | 39 -
> arch/metag/lib/muldi3.S | 45 -
> arch/metag/lib/ucmpdi2.S | 28 -
> arch/metag/lib/usercopy.c | 1257 --------------------------
> arch/metag/mm/Kconfig | 147 ----
> arch/metag/mm/Makefile | 20 -
> arch/metag/mm/cache.c | 521 -----------
> arch/metag/mm/extable.c | 15 -
> arch/metag/mm/fault.c | 247 ------
> arch/metag/mm/highmem.c | 122 ---
> arch/metag/mm/hugetlbpage.c | 251 ------
> arch/metag/mm/init.c | 408 ---------
> arch/metag/mm/ioremap.c | 90 --
> arch/metag/mm/l2cache.c | 193 ----
> arch/metag/mm/maccess.c | 69 --
> arch/metag/mm/mmu-meta1.c | 157 ----
> arch/metag/mm/mmu-meta2.c | 208 -----
> arch/metag/mm/numa.c | 82 --
> arch/metag/oprofile/Makefile | 18 -
> arch/metag/oprofile/backtrace.c | 63 --
> arch/metag/oprofile/backtrace.h | 7 -
> arch/metag/oprofile/common.c | 66 --
> arch/metag/tbx/Makefile | 22 -
> arch/metag/tbx/tbicore.S | 136 ---
> arch/metag/tbx/tbictx.S | 366 --------
> arch/metag/tbx/tbictxfpu.S | 190 ----
> arch/metag/tbx/tbidefr.S | 175 ----
> arch/metag/tbx/tbidspram.S | 161 ----
> arch/metag/tbx/tbilogf.S | 48 -
> arch/metag/tbx/tbipcx.S | 451 ----------
> arch/metag/tbx/tbiroot.S | 87 --
> arch/metag/tbx/tbisoft.S | 237 -----
> arch/metag/tbx/tbistring.c | 114 ---
> arch/metag/tbx/tbitimer.S | 207 -----
> 179 files changed, 25078 deletions(-)
> delete mode 100644 arch/metag/Kconfig
> delete mode 100644 arch/metag/Kconfig.debug
> delete mode 100644 arch/metag/Kconfig.soc
> delete mode 100644 arch/metag/Makefile
> delete mode 100644 arch/metag/boot/.gitignore
> delete mode 100644 arch/metag/boot/Makefile
> delete mode 100644 arch/metag/boot/dts/Makefile
> delete mode 100644 arch/metag/boot/dts/skeleton.dts
> delete mode 100644 arch/metag/boot/dts/skeleton.dtsi
> delete mode 100644 arch/metag/boot/dts/tz1090.dtsi
> delete mode 100644 arch/metag/boot/dts/tz1090_generic.dts
> delete mode 100644 arch/metag/configs/meta1_defconfig
> delete mode 100644 arch/metag/configs/meta2_defconfig
> delete mode 100644 arch/metag/configs/meta2_smp_defconfig
> delete mode 100644 arch/metag/configs/tz1090_defconfig
> delete mode 100644 arch/metag/include/asm/Kbuild
> delete mode 100644 arch/metag/include/asm/atomic.h
> delete mode 100644 arch/metag/include/asm/atomic_lnkget.h
> delete mode 100644 arch/metag/include/asm/atomic_lock1.h
> delete mode 100644 arch/metag/include/asm/barrier.h
> delete mode 100644 arch/metag/include/asm/bitops.h
> delete mode 100644 arch/metag/include/asm/bug.h
> delete mode 100644 arch/metag/include/asm/cache.h
> delete mode 100644 arch/metag/include/asm/cacheflush.h
> delete mode 100644 arch/metag/include/asm/cachepart.h
> delete mode 100644 arch/metag/include/asm/checksum.h
> delete mode 100644 arch/metag/include/asm/clock.h
> delete mode 100644 arch/metag/include/asm/cmpxchg.h
> delete mode 100644 arch/metag/include/asm/cmpxchg_irq.h
> delete mode 100644 arch/metag/include/asm/cmpxchg_lnkget.h
> delete mode 100644 arch/metag/include/asm/cmpxchg_lock1.h
> delete mode 100644 arch/metag/include/asm/core_reg.h
> delete mode 100644 arch/metag/include/asm/cpu.h
> delete mode 100644 arch/metag/include/asm/da.h
> delete mode 100644 arch/metag/include/asm/delay.h
> delete mode 100644 arch/metag/include/asm/div64.h
> delete mode 100644 arch/metag/include/asm/dma-mapping.h
> delete mode 100644 arch/metag/include/asm/elf.h
> delete mode 100644 arch/metag/include/asm/fixmap.h
> delete mode 100644 arch/metag/include/asm/ftrace.h
> delete mode 100644 arch/metag/include/asm/global_lock.h
> delete mode 100644 arch/metag/include/asm/highmem.h
> delete mode 100644 arch/metag/include/asm/hugetlb.h
> delete mode 100644 arch/metag/include/asm/hwthread.h
> delete mode 100644 arch/metag/include/asm/io.h
> delete mode 100644 arch/metag/include/asm/irq.h
> delete mode 100644 arch/metag/include/asm/irqflags.h
> delete mode 100644 arch/metag/include/asm/l2cache.h
> delete mode 100644 arch/metag/include/asm/linkage.h
> delete mode 100644 arch/metag/include/asm/mach/arch.h
> delete mode 100644 arch/metag/include/asm/metag_isa.h
> delete mode 100644 arch/metag/include/asm/metag_mem.h
> delete mode 100644 arch/metag/include/asm/metag_regs.h
> delete mode 100644 arch/metag/include/asm/mman.h
> delete mode 100644 arch/metag/include/asm/mmu.h
> delete mode 100644 arch/metag/include/asm/mmu_context.h
> delete mode 100644 arch/metag/include/asm/mmzone.h
> delete mode 100644 arch/metag/include/asm/module.h
> delete mode 100644 arch/metag/include/asm/page.h
> delete mode 100644 arch/metag/include/asm/perf_event.h
> delete mode 100644 arch/metag/include/asm/pgalloc.h
> delete mode 100644 arch/metag/include/asm/pgtable-bits.h
> delete mode 100644 arch/metag/include/asm/pgtable.h
> delete mode 100644 arch/metag/include/asm/processor.h
> delete mode 100644 arch/metag/include/asm/ptrace.h
> delete mode 100644 arch/metag/include/asm/setup.h
> delete mode 100644 arch/metag/include/asm/smp.h
> delete mode 100644 arch/metag/include/asm/sparsemem.h
> delete mode 100644 arch/metag/include/asm/spinlock.h
> delete mode 100644 arch/metag/include/asm/spinlock_lnkget.h
> delete mode 100644 arch/metag/include/asm/spinlock_lock1.h
> delete mode 100644 arch/metag/include/asm/spinlock_types.h
> delete mode 100644 arch/metag/include/asm/stacktrace.h
> delete mode 100644 arch/metag/include/asm/string.h
> delete mode 100644 arch/metag/include/asm/switch.h
> delete mode 100644 arch/metag/include/asm/syscall.h
> delete mode 100644 arch/metag/include/asm/syscalls.h
> delete mode 100644 arch/metag/include/asm/tbx.h
> delete mode 100644 arch/metag/include/asm/tcm.h
> delete mode 100644 arch/metag/include/asm/thread_info.h
> delete mode 100644 arch/metag/include/asm/tlb.h
> delete mode 100644 arch/metag/include/asm/tlbflush.h
> delete mode 100644 arch/metag/include/asm/topology.h
> delete mode 100644 arch/metag/include/asm/traps.h
> delete mode 100644 arch/metag/include/asm/uaccess.h
> delete mode 100644 arch/metag/include/asm/unistd.h
> delete mode 100644 arch/metag/include/asm/user_gateway.h
> delete mode 100644 arch/metag/include/uapi/asm/Kbuild
> delete mode 100644 arch/metag/include/uapi/asm/byteorder.h
> delete mode 100644 arch/metag/include/uapi/asm/ech.h
> delete mode 100644 arch/metag/include/uapi/asm/ptrace.h
> delete mode 100644 arch/metag/include/uapi/asm/sigcontext.h
> delete mode 100644 arch/metag/include/uapi/asm/siginfo.h
> delete mode 100644 arch/metag/include/uapi/asm/swab.h
> delete mode 100644 arch/metag/include/uapi/asm/unistd.h
> delete mode 100644 arch/metag/kernel/.gitignore
> delete mode 100644 arch/metag/kernel/Makefile
> delete mode 100644 arch/metag/kernel/asm-offsets.c
> delete mode 100644 arch/metag/kernel/cachepart.c
> delete mode 100644 arch/metag/kernel/clock.c
> delete mode 100644 arch/metag/kernel/core_reg.c
> delete mode 100644 arch/metag/kernel/da.c
> delete mode 100644 arch/metag/kernel/devtree.c
> delete mode 100644 arch/metag/kernel/dma.c
> delete mode 100644 arch/metag/kernel/ftrace.c
> delete mode 100644 arch/metag/kernel/ftrace_stub.S
> delete mode 100644 arch/metag/kernel/head.S
> delete mode 100644 arch/metag/kernel/irq.c
> delete mode 100644 arch/metag/kernel/kick.c
> delete mode 100644 arch/metag/kernel/machines.c
> delete mode 100644 arch/metag/kernel/metag_ksyms.c
> delete mode 100644 arch/metag/kernel/module.c
> delete mode 100644 arch/metag/kernel/perf/Makefile
> delete mode 100644 arch/metag/kernel/perf/perf_event.c
> delete mode 100644 arch/metag/kernel/perf/perf_event.h
> delete mode 100644 arch/metag/kernel/perf_callchain.c
> delete mode 100644 arch/metag/kernel/process.c
> delete mode 100644 arch/metag/kernel/ptrace.c
> delete mode 100644 arch/metag/kernel/setup.c
> delete mode 100644 arch/metag/kernel/signal.c
> delete mode 100644 arch/metag/kernel/smp.c
> delete mode 100644 arch/metag/kernel/stacktrace.c
> delete mode 100644 arch/metag/kernel/sys_metag.c
> delete mode 100644 arch/metag/kernel/tbiunexp.S
> delete mode 100644 arch/metag/kernel/tcm.c
> delete mode 100644 arch/metag/kernel/time.c
> delete mode 100644 arch/metag/kernel/topology.c
> delete mode 100644 arch/metag/kernel/traps.c
> delete mode 100644 arch/metag/kernel/user_gateway.S
> delete mode 100644 arch/metag/kernel/vmlinux.lds.S
> delete mode 100644 arch/metag/lib/Makefile
> delete mode 100644 arch/metag/lib/ashldi3.S
> delete mode 100644 arch/metag/lib/ashrdi3.S
> delete mode 100644 arch/metag/lib/checksum.c
> delete mode 100644 arch/metag/lib/clear_page.S
> delete mode 100644 arch/metag/lib/cmpdi2.S
> delete mode 100644 arch/metag/lib/copy_page.S
> delete mode 100644 arch/metag/lib/delay.c
> delete mode 100644 arch/metag/lib/div64.S
> delete mode 100644 arch/metag/lib/divsi3.S
> delete mode 100644 arch/metag/lib/ip_fast_csum.S
> delete mode 100644 arch/metag/lib/lshrdi3.S
> delete mode 100644 arch/metag/lib/memcpy.S
> delete mode 100644 arch/metag/lib/memmove.S
> delete mode 100644 arch/metag/lib/memset.S
> delete mode 100644 arch/metag/lib/modsi3.S
> delete mode 100644 arch/metag/lib/muldi3.S
> delete mode 100644 arch/metag/lib/ucmpdi2.S
> delete mode 100644 arch/metag/lib/usercopy.c
> delete mode 100644 arch/metag/mm/Kconfig
> delete mode 100644 arch/metag/mm/Makefile
> delete mode 100644 arch/metag/mm/cache.c
> delete mode 100644 arch/metag/mm/extable.c
> delete mode 100644 arch/metag/mm/fault.c
> delete mode 100644 arch/metag/mm/highmem.c
> delete mode 100644 arch/metag/mm/hugetlbpage.c
> delete mode 100644 arch/metag/mm/init.c
> delete mode 100644 arch/metag/mm/ioremap.c
> delete mode 100644 arch/metag/mm/l2cache.c
> delete mode 100644 arch/metag/mm/maccess.c
> delete mode 100644 arch/metag/mm/mmu-meta1.c
> delete mode 100644 arch/metag/mm/mmu-meta2.c
> delete mode 100644 arch/metag/mm/numa.c
> delete mode 100644 arch/metag/oprofile/Makefile
> delete mode 100644 arch/metag/oprofile/backtrace.c
> delete mode 100644 arch/metag/oprofile/backtrace.h
> delete mode 100644 arch/metag/oprofile/common.c
> delete mode 100644 arch/metag/tbx/Makefile
> delete mode 100644 arch/metag/tbx/tbicore.S
> delete mode 100644 arch/metag/tbx/tbictx.S
> delete mode 100644 arch/metag/tbx/tbictxfpu.S
> delete mode 100644 arch/metag/tbx/tbidefr.S
> delete mode 100644 arch/metag/tbx/tbidspram.S
> delete mode 100644 arch/metag/tbx/tbilogf.S
> delete mode 100644 arch/metag/tbx/tbipcx.S
> delete mode 100644 arch/metag/tbx/tbiroot.S
> delete mode 100644 arch/metag/tbx/tbisoft.S
> delete mode 100644 arch/metag/tbx/tbistring.c
> delete mode 100644 arch/metag/tbx/tbitimer.S
>
> diff --git a/arch/metag/Kconfig b/arch/metag/Kconfig
> deleted file mode 100644
> index c7b62a339539..000000000000
> diff --git a/arch/metag/Kconfig.debug b/arch/metag/Kconfig.debug
> deleted file mode 100644
> index ac4516c605db..000000000000
> diff --git a/arch/metag/Kconfig.soc b/arch/metag/Kconfig.soc
> deleted file mode 100644
> index c521f0e00d8e..000000000000
> diff --git a/arch/metag/Makefile b/arch/metag/Makefile
> deleted file mode 100644
> index 033a58214119..000000000000
> diff --git a/arch/metag/boot/.gitignore b/arch/metag/boot/.gitignore
> deleted file mode 100644
> index 6c662ddb909a..000000000000
> diff --git a/arch/metag/boot/Makefile b/arch/metag/boot/Makefile
> deleted file mode 100644
> index 5a1f88cf91e3..000000000000
> diff --git a/arch/metag/boot/dts/Makefile b/arch/metag/boot/dts/Makefile
> deleted file mode 100644
> index f0a180f62766..000000000000
> diff --git a/arch/metag/boot/dts/skeleton.dts b/arch/metag/boot/dts/skeleton.dts
> deleted file mode 100644
> index 7a49aeb365d0..000000000000
> diff --git a/arch/metag/boot/dts/skeleton.dtsi b/arch/metag/boot/dts/skeleton.dtsi
> deleted file mode 100644
> index 43e2ffe73c27..000000000000
> diff --git a/arch/metag/boot/dts/tz1090.dtsi b/arch/metag/boot/dts/tz1090.dtsi
> deleted file mode 100644
> index 24ea7d2e9138..000000000000
> diff --git a/arch/metag/boot/dts/tz1090_generic.dts b/arch/metag/boot/dts/tz1090_generic.dts
> deleted file mode 100644
> index f96090955964..000000000000
> diff --git a/arch/metag/configs/meta1_defconfig b/arch/metag/configs/meta1_defconfig
> deleted file mode 100644
> index 01cd67e4403d..000000000000
> diff --git a/arch/metag/configs/meta2_defconfig b/arch/metag/configs/meta2_defconfig
> deleted file mode 100644
> index 643392ba7ed5..000000000000
> diff --git a/arch/metag/configs/meta2_smp_defconfig b/arch/metag/configs/meta2_smp_defconfig
> deleted file mode 100644
> index f3306737da20..000000000000
> diff --git a/arch/metag/configs/tz1090_defconfig b/arch/metag/configs/tz1090_defconfig
> deleted file mode 100644
> index 9f9316a6df27..000000000000
> diff --git a/arch/metag/include/asm/Kbuild b/arch/metag/include/asm/Kbuild
> deleted file mode 100644
> index 913c779979df..000000000000
> diff --git a/arch/metag/include/asm/atomic.h b/arch/metag/include/asm/atomic.h
> deleted file mode 100644
> index 97ae189c2dd8..000000000000
> diff --git a/arch/metag/include/asm/atomic_lnkget.h b/arch/metag/include/asm/atomic_lnkget.h
> deleted file mode 100644
> index 17e8c61c946d..000000000000
> diff --git a/arch/metag/include/asm/atomic_lock1.h b/arch/metag/include/asm/atomic_lock1.h
> deleted file mode 100644
> index 2ce8fa3a79c2..000000000000
> diff --git a/arch/metag/include/asm/barrier.h b/arch/metag/include/asm/barrier.h
> deleted file mode 100644
> index 2661fec5696a..000000000000
> diff --git a/arch/metag/include/asm/bitops.h b/arch/metag/include/asm/bitops.h
> deleted file mode 100644
> index 766ad43010ad..000000000000
> diff --git a/arch/metag/include/asm/bug.h b/arch/metag/include/asm/bug.h
> deleted file mode 100644
> index ee07a943f931..000000000000
> diff --git a/arch/metag/include/asm/cache.h b/arch/metag/include/asm/cache.h
> deleted file mode 100644
> index b5df02239c8d..000000000000
> diff --git a/arch/metag/include/asm/cacheflush.h b/arch/metag/include/asm/cacheflush.h
> deleted file mode 100644
> index 2584a51eca1a..000000000000
> diff --git a/arch/metag/include/asm/cachepart.h b/arch/metag/include/asm/cachepart.h
> deleted file mode 100644
> index 79411e977586..000000000000
> diff --git a/arch/metag/include/asm/checksum.h b/arch/metag/include/asm/checksum.h
> deleted file mode 100644
> index 6533d14e9789..000000000000
> diff --git a/arch/metag/include/asm/clock.h b/arch/metag/include/asm/clock.h
> deleted file mode 100644
> index ded4ab2e1fd0..000000000000
> diff --git a/arch/metag/include/asm/cmpxchg.h b/arch/metag/include/asm/cmpxchg.h
> deleted file mode 100644
> index 68c4ab1466fd..000000000000
> diff --git a/arch/metag/include/asm/cmpxchg_irq.h b/arch/metag/include/asm/cmpxchg_irq.h
> deleted file mode 100644
> index 5255e37f8496..000000000000
> diff --git a/arch/metag/include/asm/cmpxchg_lnkget.h b/arch/metag/include/asm/cmpxchg_lnkget.h
> deleted file mode 100644
> index c69be00a4739..000000000000
> diff --git a/arch/metag/include/asm/cmpxchg_lock1.h b/arch/metag/include/asm/cmpxchg_lock1.h
> deleted file mode 100644
> index 5976e39db2b4..000000000000
> diff --git a/arch/metag/include/asm/core_reg.h b/arch/metag/include/asm/core_reg.h
> deleted file mode 100644
> index ca70a0a29b61..000000000000
> diff --git a/arch/metag/include/asm/cpu.h b/arch/metag/include/asm/cpu.h
> deleted file mode 100644
> index 9dac67de4748..000000000000
> diff --git a/arch/metag/include/asm/da.h b/arch/metag/include/asm/da.h
> deleted file mode 100644
> index 901daa540e6e..000000000000
> diff --git a/arch/metag/include/asm/delay.h b/arch/metag/include/asm/delay.h
> deleted file mode 100644
> index fd73d3d5d294..000000000000
> diff --git a/arch/metag/include/asm/div64.h b/arch/metag/include/asm/div64.h
> deleted file mode 100644
> index e3686d2ae20e..000000000000
> diff --git a/arch/metag/include/asm/dma-mapping.h b/arch/metag/include/asm/dma-mapping.h
> deleted file mode 100644
> index cfd6a0505b56..000000000000
> diff --git a/arch/metag/include/asm/elf.h b/arch/metag/include/asm/elf.h
> deleted file mode 100644
> index a6c33800ba66..000000000000
> diff --git a/arch/metag/include/asm/fixmap.h b/arch/metag/include/asm/fixmap.h
> deleted file mode 100644
> index af621b041739..000000000000
> diff --git a/arch/metag/include/asm/ftrace.h b/arch/metag/include/asm/ftrace.h
> deleted file mode 100644
> index b1c8c76fb772..000000000000
> diff --git a/arch/metag/include/asm/global_lock.h b/arch/metag/include/asm/global_lock.h
> deleted file mode 100644
> index 4d3da9682233..000000000000
> diff --git a/arch/metag/include/asm/highmem.h b/arch/metag/include/asm/highmem.h
> deleted file mode 100644
> index 8b0dfd684e15..000000000000
> diff --git a/arch/metag/include/asm/hugetlb.h b/arch/metag/include/asm/hugetlb.h
> deleted file mode 100644
> index 1607363d2639..000000000000
> diff --git a/arch/metag/include/asm/hwthread.h b/arch/metag/include/asm/hwthread.h
> deleted file mode 100644
> index 8d2171da5414..000000000000
> diff --git a/arch/metag/include/asm/io.h b/arch/metag/include/asm/io.h
> deleted file mode 100644
> index 71cd2bc54718..000000000000
> diff --git a/arch/metag/include/asm/irq.h b/arch/metag/include/asm/irq.h
> deleted file mode 100644
> index cb02c29935a4..000000000000
> diff --git a/arch/metag/include/asm/irqflags.h b/arch/metag/include/asm/irqflags.h
> deleted file mode 100644
> index e2fe34acb93b..000000000000
> diff --git a/arch/metag/include/asm/l2cache.h b/arch/metag/include/asm/l2cache.h
> deleted file mode 100644
> index f260b158b8fe..000000000000
> diff --git a/arch/metag/include/asm/linkage.h b/arch/metag/include/asm/linkage.h
> deleted file mode 100644
> index 3a9024ecb827..000000000000
> diff --git a/arch/metag/include/asm/mach/arch.h b/arch/metag/include/asm/mach/arch.h
> deleted file mode 100644
> index 433f94624fa2..000000000000
> diff --git a/arch/metag/include/asm/metag_isa.h b/arch/metag/include/asm/metag_isa.h
> deleted file mode 100644
> index c8aa2ae3899f..000000000000
> diff --git a/arch/metag/include/asm/metag_mem.h b/arch/metag/include/asm/metag_mem.h
> deleted file mode 100644
> index 7848bc6d3b61..000000000000
> diff --git a/arch/metag/include/asm/metag_regs.h b/arch/metag/include/asm/metag_regs.h
> deleted file mode 100644
> index 60b750971d8a..000000000000
> diff --git a/arch/metag/include/asm/mman.h b/arch/metag/include/asm/mman.h
> deleted file mode 100644
> index dcb0d20a64fd..000000000000
> diff --git a/arch/metag/include/asm/mmu.h b/arch/metag/include/asm/mmu.h
> deleted file mode 100644
> index cab5a01c3dcb..000000000000
> diff --git a/arch/metag/include/asm/mmu_context.h b/arch/metag/include/asm/mmu_context.h
> deleted file mode 100644
> index 7b4766379622..000000000000
> diff --git a/arch/metag/include/asm/mmzone.h b/arch/metag/include/asm/mmzone.h
> deleted file mode 100644
> index 8627fb532206..000000000000
> diff --git a/arch/metag/include/asm/module.h b/arch/metag/include/asm/module.h
> deleted file mode 100644
> index e957171c320b..000000000000
> diff --git a/arch/metag/include/asm/page.h b/arch/metag/include/asm/page.h
> deleted file mode 100644
> index 9e994d77069d..000000000000
> diff --git a/arch/metag/include/asm/perf_event.h b/arch/metag/include/asm/perf_event.h
> deleted file mode 100644
> index 105bbff0149f..000000000000
> diff --git a/arch/metag/include/asm/pgalloc.h b/arch/metag/include/asm/pgalloc.h
> deleted file mode 100644
> index 0b9d95d78b61..000000000000
> diff --git a/arch/metag/include/asm/pgtable-bits.h b/arch/metag/include/asm/pgtable-bits.h
> deleted file mode 100644
> index 5f6b82282a41..000000000000
> diff --git a/arch/metag/include/asm/pgtable.h b/arch/metag/include/asm/pgtable.h
> deleted file mode 100644
> index a3422f06c03b..000000000000
> diff --git a/arch/metag/include/asm/processor.h b/arch/metag/include/asm/processor.h
> deleted file mode 100644
> index 9a0c502cd4a0..000000000000
> diff --git a/arch/metag/include/asm/ptrace.h b/arch/metag/include/asm/ptrace.h
> deleted file mode 100644
> index 9074f254c9ca..000000000000
> diff --git a/arch/metag/include/asm/setup.h b/arch/metag/include/asm/setup.h
> deleted file mode 100644
> index 504621d79ef5..000000000000
> diff --git a/arch/metag/include/asm/smp.h b/arch/metag/include/asm/smp.h
> deleted file mode 100644
> index 8d3683d83680..000000000000
> diff --git a/arch/metag/include/asm/sparsemem.h b/arch/metag/include/asm/sparsemem.h
> deleted file mode 100644
> index 2942894bace5..000000000000
> diff --git a/arch/metag/include/asm/spinlock.h b/arch/metag/include/asm/spinlock.h
> deleted file mode 100644
> index 4497c232d9c1..000000000000
> diff --git a/arch/metag/include/asm/spinlock_lnkget.h b/arch/metag/include/asm/spinlock_lnkget.h
> deleted file mode 100644
> index dfd780eab350..000000000000
> diff --git a/arch/metag/include/asm/spinlock_lock1.h b/arch/metag/include/asm/spinlock_lock1.h
> deleted file mode 100644
> index c0bd81bbe18c..000000000000
> diff --git a/arch/metag/include/asm/spinlock_types.h b/arch/metag/include/asm/spinlock_types.h
> deleted file mode 100644
> index cd197f1bed59..000000000000
> diff --git a/arch/metag/include/asm/stacktrace.h b/arch/metag/include/asm/stacktrace.h
> deleted file mode 100644
> index f45e3cb2bbb5..000000000000
> diff --git a/arch/metag/include/asm/string.h b/arch/metag/include/asm/string.h
> deleted file mode 100644
> index 86f9614d5fc6..000000000000
> diff --git a/arch/metag/include/asm/switch.h b/arch/metag/include/asm/switch.h
> deleted file mode 100644
> index 1fd6a587c844..000000000000
> diff --git a/arch/metag/include/asm/syscall.h b/arch/metag/include/asm/syscall.h
> deleted file mode 100644
> index 24fc97939f77..000000000000
> diff --git a/arch/metag/include/asm/syscalls.h b/arch/metag/include/asm/syscalls.h
> deleted file mode 100644
> index eac0cf120323..000000000000
> diff --git a/arch/metag/include/asm/tbx.h b/arch/metag/include/asm/tbx.h
> deleted file mode 100644
> index 5cd2a6c86223..000000000000
> diff --git a/arch/metag/include/asm/tcm.h b/arch/metag/include/asm/tcm.h
> deleted file mode 100644
> index a0a4997e4b8a..000000000000
> diff --git a/arch/metag/include/asm/thread_info.h b/arch/metag/include/asm/thread_info.h
> deleted file mode 100644
> index a1a9c7f5ca8c..000000000000
> diff --git a/arch/metag/include/asm/tlb.h b/arch/metag/include/asm/tlb.h
> deleted file mode 100644
> index fbe6ee91e8e7..000000000000
> diff --git a/arch/metag/include/asm/tlbflush.h b/arch/metag/include/asm/tlbflush.h
> deleted file mode 100644
> index f3e5d99a3891..000000000000
> diff --git a/arch/metag/include/asm/topology.h b/arch/metag/include/asm/topology.h
> deleted file mode 100644
> index df0d9e6b7f12..000000000000
> diff --git a/arch/metag/include/asm/traps.h b/arch/metag/include/asm/traps.h
> deleted file mode 100644
> index ac808740bd84..000000000000
> diff --git a/arch/metag/include/asm/uaccess.h b/arch/metag/include/asm/uaccess.h
> deleted file mode 100644
> index a5311eb36e32..000000000000
> diff --git a/arch/metag/include/asm/unistd.h b/arch/metag/include/asm/unistd.h
> deleted file mode 100644
> index 32955a18fb32..000000000000
> diff --git a/arch/metag/include/asm/user_gateway.h b/arch/metag/include/asm/user_gateway.h
> deleted file mode 100644
> index cf2392b95a56..000000000000
> diff --git a/arch/metag/include/uapi/asm/Kbuild b/arch/metag/include/uapi/asm/Kbuild
> deleted file mode 100644
> index f9eaf07d29f8..000000000000
> diff --git a/arch/metag/include/uapi/asm/byteorder.h b/arch/metag/include/uapi/asm/byteorder.h
> deleted file mode 100644
> index e5e03ff7e20d..000000000000
> diff --git a/arch/metag/include/uapi/asm/ech.h b/arch/metag/include/uapi/asm/ech.h
> deleted file mode 100644
> index 1e09f1ea4f7f..000000000000
> diff --git a/arch/metag/include/uapi/asm/ptrace.h b/arch/metag/include/uapi/asm/ptrace.h
> deleted file mode 100644
> index 8ad9daa841c3..000000000000
> diff --git a/arch/metag/include/uapi/asm/sigcontext.h b/arch/metag/include/uapi/asm/sigcontext.h
> deleted file mode 100644
> index ac7e1f28d584..000000000000
> diff --git a/arch/metag/include/uapi/asm/siginfo.h b/arch/metag/include/uapi/asm/siginfo.h
> deleted file mode 100644
> index 9a3f6cde9487..000000000000
> diff --git a/arch/metag/include/uapi/asm/swab.h b/arch/metag/include/uapi/asm/swab.h
> deleted file mode 100644
> index 30d696fcc237..000000000000
> diff --git a/arch/metag/include/uapi/asm/unistd.h b/arch/metag/include/uapi/asm/unistd.h
> deleted file mode 100644
> index 9f72c4cfcfb5..000000000000
> diff --git a/arch/metag/kernel/.gitignore b/arch/metag/kernel/.gitignore
> deleted file mode 100644
> index c5f676c3c224..000000000000
> diff --git a/arch/metag/kernel/Makefile b/arch/metag/kernel/Makefile
> deleted file mode 100644
> index 73441d8c0369..000000000000
> diff --git a/arch/metag/kernel/asm-offsets.c b/arch/metag/kernel/asm-offsets.c
> deleted file mode 100644
> index d9b348b99ff2..000000000000
> diff --git a/arch/metag/kernel/cachepart.c b/arch/metag/kernel/cachepart.c
> deleted file mode 100644
> index 6e0f8a80cc96..000000000000
> diff --git a/arch/metag/kernel/clock.c b/arch/metag/kernel/clock.c
> deleted file mode 100644
> index 6339c9c6d0ab..000000000000
> diff --git a/arch/metag/kernel/core_reg.c b/arch/metag/kernel/core_reg.c
> deleted file mode 100644
> index df2833f2766f..000000000000
> diff --git a/arch/metag/kernel/da.c b/arch/metag/kernel/da.c
> deleted file mode 100644
> index a35dbed6fffa..000000000000
> diff --git a/arch/metag/kernel/devtree.c b/arch/metag/kernel/devtree.c
> deleted file mode 100644
> index 6af749a64438..000000000000
> diff --git a/arch/metag/kernel/dma.c b/arch/metag/kernel/dma.c
> deleted file mode 100644
> index f0ab3a498328..000000000000
> diff --git a/arch/metag/kernel/ftrace.c b/arch/metag/kernel/ftrace.c
> deleted file mode 100644
> index f7b23d300881..000000000000
> diff --git a/arch/metag/kernel/ftrace_stub.S b/arch/metag/kernel/ftrace_stub.S
> deleted file mode 100644
> index 3acc288217c0..000000000000
> diff --git a/arch/metag/kernel/head.S b/arch/metag/kernel/head.S
> deleted file mode 100644
> index 3ed27813413e..000000000000
> diff --git a/arch/metag/kernel/irq.c b/arch/metag/kernel/irq.c
> deleted file mode 100644
> index 704cf17f8370..000000000000
> diff --git a/arch/metag/kernel/kick.c b/arch/metag/kernel/kick.c
> deleted file mode 100644
> index beb377621322..000000000000
> diff --git a/arch/metag/kernel/machines.c b/arch/metag/kernel/machines.c
> deleted file mode 100644
> index e49790181051..000000000000
> diff --git a/arch/metag/kernel/metag_ksyms.c b/arch/metag/kernel/metag_ksyms.c
> deleted file mode 100644
> index e312386efb72..000000000000
> diff --git a/arch/metag/kernel/module.c b/arch/metag/kernel/module.c
> deleted file mode 100644
> index bb8dfba9a763..000000000000
> diff --git a/arch/metag/kernel/perf/Makefile b/arch/metag/kernel/perf/Makefile
> deleted file mode 100644
> index b158cb27208d..000000000000
> diff --git a/arch/metag/kernel/perf/perf_event.c b/arch/metag/kernel/perf/perf_event.c
> deleted file mode 100644
> index 7e793eb0c1fe..000000000000
> diff --git a/arch/metag/kernel/perf/perf_event.h b/arch/metag/kernel/perf/perf_event.h
> deleted file mode 100644
> index fd10a1345b67..000000000000
> diff --git a/arch/metag/kernel/perf_callchain.c b/arch/metag/kernel/perf_callchain.c
> deleted file mode 100644
> index d325ba101de0..000000000000
> diff --git a/arch/metag/kernel/process.c b/arch/metag/kernel/process.c
> deleted file mode 100644
> index 0909834c83a7..000000000000
> diff --git a/arch/metag/kernel/ptrace.c b/arch/metag/kernel/ptrace.c
> deleted file mode 100644
> index e615603a4b0a..000000000000
> diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c
> deleted file mode 100644
> index 1166f1fbfd63..000000000000
> diff --git a/arch/metag/kernel/signal.c b/arch/metag/kernel/signal.c
> deleted file mode 100644
> index e64e8b0a9363..000000000000
> diff --git a/arch/metag/kernel/smp.c b/arch/metag/kernel/smp.c
> deleted file mode 100644
> index 2dbbb7c66043..000000000000
> diff --git a/arch/metag/kernel/stacktrace.c b/arch/metag/kernel/stacktrace.c
> deleted file mode 100644
> index 09d67b7f51ca..000000000000
> diff --git a/arch/metag/kernel/sys_metag.c b/arch/metag/kernel/sys_metag.c
> deleted file mode 100644
> index 27d96499dd38..000000000000
> diff --git a/arch/metag/kernel/tbiunexp.S b/arch/metag/kernel/tbiunexp.S
> deleted file mode 100644
> index 2664808086c7..000000000000
> diff --git a/arch/metag/kernel/tcm.c b/arch/metag/kernel/tcm.c
> deleted file mode 100644
> index 1d7b4e33b114..000000000000
> diff --git a/arch/metag/kernel/time.c b/arch/metag/kernel/time.c
> deleted file mode 100644
> index 1e809e3b43d1..000000000000
> diff --git a/arch/metag/kernel/topology.c b/arch/metag/kernel/topology.c
> deleted file mode 100644
> index 4ba595701f7d..000000000000
> diff --git a/arch/metag/kernel/traps.c b/arch/metag/kernel/traps.c
> deleted file mode 100644
> index 3b62b1b0c0b5..000000000000
> diff --git a/arch/metag/kernel/user_gateway.S b/arch/metag/kernel/user_gateway.S
> deleted file mode 100644
> index 7833fb8f9ddd..000000000000
> diff --git a/arch/metag/kernel/vmlinux.lds.S b/arch/metag/kernel/vmlinux.lds.S
> deleted file mode 100644
> index 1efadae2ea8e..000000000000
> diff --git a/arch/metag/lib/Makefile b/arch/metag/lib/Makefile
> deleted file mode 100644
> index 3982850d692c..000000000000
> diff --git a/arch/metag/lib/ashldi3.S b/arch/metag/lib/ashldi3.S
> deleted file mode 100644
> index 5055df9e5c7b..000000000000
> diff --git a/arch/metag/lib/ashrdi3.S b/arch/metag/lib/ashrdi3.S
> deleted file mode 100644
> index 0c838fd9da85..000000000000
> diff --git a/arch/metag/lib/checksum.c b/arch/metag/lib/checksum.c
> deleted file mode 100644
> index 5d6a98a05e9d..000000000000
> diff --git a/arch/metag/lib/clear_page.S b/arch/metag/lib/clear_page.S
> deleted file mode 100644
> index 87756a5d1367..000000000000
> diff --git a/arch/metag/lib/cmpdi2.S b/arch/metag/lib/cmpdi2.S
> deleted file mode 100644
> index ab70bd94fd81..000000000000
> diff --git a/arch/metag/lib/copy_page.S b/arch/metag/lib/copy_page.S
> deleted file mode 100644
> index abbc75e94374..000000000000
> diff --git a/arch/metag/lib/delay.c b/arch/metag/lib/delay.c
> deleted file mode 100644
> index 6754012a261f..000000000000
> diff --git a/arch/metag/lib/div64.S b/arch/metag/lib/div64.S
> deleted file mode 100644
> index 55eece273a6b..000000000000
> diff --git a/arch/metag/lib/divsi3.S b/arch/metag/lib/divsi3.S
> deleted file mode 100644
> index 9e31abefb160..000000000000
> diff --git a/arch/metag/lib/ip_fast_csum.S b/arch/metag/lib/ip_fast_csum.S
> deleted file mode 100644
> index 441f489d6a81..000000000000
> diff --git a/arch/metag/lib/lshrdi3.S b/arch/metag/lib/lshrdi3.S
> deleted file mode 100644
> index cf7ffc9b377f..000000000000
> diff --git a/arch/metag/lib/memcpy.S b/arch/metag/lib/memcpy.S
> deleted file mode 100644
> index c2e8395f9456..000000000000
> diff --git a/arch/metag/lib/memmove.S b/arch/metag/lib/memmove.S
> deleted file mode 100644
> index 934abda0e680..000000000000
> diff --git a/arch/metag/lib/memset.S b/arch/metag/lib/memset.S
> deleted file mode 100644
> index 6ee246d831c7..000000000000
> diff --git a/arch/metag/lib/modsi3.S b/arch/metag/lib/modsi3.S
> deleted file mode 100644
> index d65a2e5b3154..000000000000
> diff --git a/arch/metag/lib/muldi3.S b/arch/metag/lib/muldi3.S
> deleted file mode 100644
> index 9d106790244d..000000000000
> diff --git a/arch/metag/lib/ucmpdi2.S b/arch/metag/lib/ucmpdi2.S
> deleted file mode 100644
> index 46f5686db8b1..000000000000
> diff --git a/arch/metag/lib/usercopy.c b/arch/metag/lib/usercopy.c
> deleted file mode 100644
> index a48ef522c02d..000000000000
> diff --git a/arch/metag/mm/Kconfig b/arch/metag/mm/Kconfig
> deleted file mode 100644
> index 9d4b2c67dcc1..000000000000
> diff --git a/arch/metag/mm/Makefile b/arch/metag/mm/Makefile
> deleted file mode 100644
> index 0c7c91ba9fb9..000000000000
> diff --git a/arch/metag/mm/cache.c b/arch/metag/mm/cache.c
> deleted file mode 100644
> index a62285284ab8..000000000000
> diff --git a/arch/metag/mm/extable.c b/arch/metag/mm/extable.c
> deleted file mode 100644
> index 9b92d3ad7f9c..000000000000
> diff --git a/arch/metag/mm/fault.c b/arch/metag/mm/fault.c
> deleted file mode 100644
> index de54fe686080..000000000000
> diff --git a/arch/metag/mm/highmem.c b/arch/metag/mm/highmem.c
> deleted file mode 100644
> index 83527fc7c8a7..000000000000
> diff --git a/arch/metag/mm/hugetlbpage.c b/arch/metag/mm/hugetlbpage.c
> deleted file mode 100644
> index 012ee4c80dc7..000000000000
> diff --git a/arch/metag/mm/init.c b/arch/metag/mm/init.c
> deleted file mode 100644
> index 0e2ca9058998..000000000000
> diff --git a/arch/metag/mm/ioremap.c b/arch/metag/mm/ioremap.c
> deleted file mode 100644
> index df2b59cb02eb..000000000000
> diff --git a/arch/metag/mm/l2cache.c b/arch/metag/mm/l2cache.c
> deleted file mode 100644
> index addffc58989c..000000000000
> diff --git a/arch/metag/mm/maccess.c b/arch/metag/mm/maccess.c
> deleted file mode 100644
> index c22755165df9..000000000000
> diff --git a/arch/metag/mm/mmu-meta1.c b/arch/metag/mm/mmu-meta1.c
> deleted file mode 100644
> index 53190b13dc54..000000000000
> diff --git a/arch/metag/mm/mmu-meta2.c b/arch/metag/mm/mmu-meta2.c
> deleted file mode 100644
> index 8b668a69c980..000000000000
> diff --git a/arch/metag/mm/numa.c b/arch/metag/mm/numa.c
> deleted file mode 100644
> index 67b46c295072..000000000000
> diff --git a/arch/metag/oprofile/Makefile b/arch/metag/oprofile/Makefile
> deleted file mode 100644
> index dc92a4a3d618..000000000000
> diff --git a/arch/metag/oprofile/backtrace.c b/arch/metag/oprofile/backtrace.c
> deleted file mode 100644
> index 7cc3f37cb40e..000000000000
> diff --git a/arch/metag/oprofile/backtrace.h b/arch/metag/oprofile/backtrace.h
> deleted file mode 100644
> index 60adb862aa2c..000000000000
> diff --git a/arch/metag/oprofile/common.c b/arch/metag/oprofile/common.c
> deleted file mode 100644
> index ba26152b3c00..000000000000
> diff --git a/arch/metag/tbx/Makefile b/arch/metag/tbx/Makefile
> deleted file mode 100644
> index 98bc5453cf24..000000000000
> diff --git a/arch/metag/tbx/tbicore.S b/arch/metag/tbx/tbicore.S
> deleted file mode 100644
> index a0838ebcb433..000000000000
> diff --git a/arch/metag/tbx/tbictx.S b/arch/metag/tbx/tbictx.S
> deleted file mode 100644
> index 19af983a13ae..000000000000
> diff --git a/arch/metag/tbx/tbictxfpu.S b/arch/metag/tbx/tbictxfpu.S
> deleted file mode 100644
> index e773bea3e7bd..000000000000
> diff --git a/arch/metag/tbx/tbidefr.S b/arch/metag/tbx/tbidefr.S
> deleted file mode 100644
> index 8f0902b22f70..000000000000
> diff --git a/arch/metag/tbx/tbidspram.S b/arch/metag/tbx/tbidspram.S
> deleted file mode 100644
> index 2f27c0372212..000000000000
> diff --git a/arch/metag/tbx/tbilogf.S b/arch/metag/tbx/tbilogf.S
> deleted file mode 100644
> index 4a34d80657db..000000000000
> diff --git a/arch/metag/tbx/tbipcx.S b/arch/metag/tbx/tbipcx.S
> deleted file mode 100644
> index 163c79ac913b..000000000000
> diff --git a/arch/metag/tbx/tbiroot.S b/arch/metag/tbx/tbiroot.S
> deleted file mode 100644
> index 7d84daf1340b..000000000000
> diff --git a/arch/metag/tbx/tbisoft.S b/arch/metag/tbx/tbisoft.S
> deleted file mode 100644
> index b04f50df8d91..000000000000
> diff --git a/arch/metag/tbx/tbistring.c b/arch/metag/tbx/tbistring.c
> deleted file mode 100644
> index f90cd0822065..000000000000
> diff --git a/arch/metag/tbx/tbitimer.S b/arch/metag/tbx/tbitimer.S
> deleted file mode 100644
> index 5dbeddeee7ba..000000000000
>


2018-02-22 07:26:17

by James Hogan

[permalink] [raw]
Subject: Re: [PATCH 01/13] metag: Remove arch/metag/

On Wed, Feb 21, 2018 at 07:52:08PM -0800, Guenter Roeck wrote:
> On 02/21/2018 03:38 PM, James Hogan wrote:
> > The earliest Meta architecture port of Linux I have a record of was an
> > import of a Meta port of Linux v2.4.1 in February 2004, which was worked
> > on significantly over the next few years by Graham Whaley, Will Newton,
> > Matt Fleming, myself and others.
> >
> > Eventually the port was merged into mainline in v3.9 in March 2013, not
> > long after Imagination Technologies bought MIPS Technologies and shifted
> > its CPU focus over to the MIPS architecture.
> >
> > As a result, though the port was maintained for a while, kept on life
> > support for a while longer, and useful for testing a few specific
> > drivers for which I don't have ready access to the equivalent MIPS
> > hardware, it is now essentially dead with no users.
> >
> > It is also stuck using an out-of-tree toolchain based on GCC 4.2.4 which
> > is no longer maintained, now struggles to build modern kernels due to
> > toolchain bugs, and doesn't itself build with a modern GCC. The latest
> > buildroot port is still using an old uClibc snapshot which is no longer
> > served, and the latest uClibc doesn't build with GCC 4.2.4.
> >
> > So lets call it a day and drop the Meta architecture port from the
> > kernel. RIP Meta.
> >
> > Signed-off-by: James Hogan <[email protected]>
> > Link: https://lkml.kernel.org/r/[email protected]
> > Cc: Guenter Roeck <[email protected]>
> > Cc: [email protected]
>
> FWIW:
>
> Reviewed-by: Guenter Roeck <[email protected]>

Thanks

>
> Did you drop the definition of CPUHP_AP_PERF_METAG_STARTING ?
> I browsed through the patches but didn't find where it was dropped.

Hmm, somehow that one slipped through my grepping. Thanks for pointing
out.

>
> Also, how did you generate this patch, and can you try to apply it yourself ?
> I tried to apply it, but neither git am nor patch worked for me. This patch
> also doesn't show up on patchwork.kernel.org which is odd.

I presume because I used -D to git format-patch, which is apparently
only intended for human consumption (the full patch is 778K). I've
pushed this version of the series here:

git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag.git
tag: metag_remove_v1

Cheers
James


Attachments:
(No filename) (2.33 kB)
signature.asc (849.00 B)
Digital signature
Download all attachments

2018-02-22 08:11:12

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH 13/13] i2c: img-scb: Drop METAG dependency

On Wed, Feb 21, 2018 at 11:38:25PM +0000, James Hogan wrote:
> Now that arch/metag/ has been removed, remove the METAG dependency from
> the IMG SCB I2C device driver. The hardware is also present on MIPS SoCs
> so the driver still has value.
>
> Signed-off-by: James Hogan <[email protected]>

I'd think it should go with the rest of this series? For that:

Acked-by: Wolfram Sang <[email protected]>

Let me know if I should rather pick this up individually.


Attachments:
(No filename) (476.00 B)
signature.asc (849.00 B)
Download all attachments

2018-02-22 08:38:51

by James Hogan

[permalink] [raw]
Subject: Re: [PATCH 13/13] i2c: img-scb: Drop METAG dependency

On Thu, Feb 22, 2018 at 09:10:18AM +0100, Wolfram Sang wrote:
> On Wed, Feb 21, 2018 at 11:38:25PM +0000, James Hogan wrote:
> > Now that arch/metag/ has been removed, remove the METAG dependency from
> > the IMG SCB I2C device driver. The hardware is also present on MIPS SoCs
> > so the driver still has value.
> >
> > Signed-off-by: James Hogan <[email protected]>
>
> I'd think it should go with the rest of this series? For that:
>
> Acked-by: Wolfram Sang <[email protected]>
>
> Let me know if I should rather pick this up individually.

Yes, I'll take this with the others.

Thanks
James


Attachments:
(No filename) (618.00 B)
signature.asc (849.00 B)
Digital signature
Download all attachments

2018-02-22 09:28:39

by Peter Zijlstra

[permalink] [raw]
Subject: Re: [PATCH 00/13] Remove metag architecture

On Wed, Feb 21, 2018 at 11:38:12PM +0000, James Hogan wrote:
> So lets call it a day and drop the Meta architecture port from the
> kernel. RIP Meta.

So long, and thanks for all the fish!

Nice cleanup though, most welcome :-)

Acked-by: Peter Zijlstra (Intel) <[email protected]>

2018-02-22 09:52:00

by James Hogan

[permalink] [raw]
Subject: Re: [PATCH 00/13] Remove metag architecture

On Thu, Feb 22, 2018 at 10:26:54AM +0100, Peter Zijlstra wrote:
> On Wed, Feb 21, 2018 at 11:38:12PM +0000, James Hogan wrote:
> > So lets call it a day and drop the Meta architecture port from the
> > kernel. RIP Meta.
>
> So long, and thanks for all the fish!
>
> Nice cleanup though, most welcome :-)

I thought you might like it ;-)

> Acked-by: Peter Zijlstra (Intel) <[email protected]>

Thanks
James


Attachments:
(No filename) (427.00 B)
signature.asc (849.00 B)
Digital signature
Download all attachments

2018-02-22 10:12:55

by Daniel Lezcano

[permalink] [raw]
Subject: Re: [PATCH 06/13] clocksource: Remove metag generic timer driver

On 22/02/2018 00:38, James Hogan wrote:
> Now that arch/metag/ has been removed, remove the metag generic
> per-thread timer driver. It is of no value without the architecture
> code.
>
> Signed-off-by: James Hogan <[email protected]>
> Cc: Daniel Lezcano <[email protected]>
> Cc: Thomas Gleixner <[email protected]>
> Cc: [email protected]

Acked-by: Daniel Lezcano <[email protected]>

--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


2018-02-22 10:43:47

by Graham Whaley

[permalink] [raw]
Subject: Re: [PATCH 00/13] Remove metag architecture

On 22 February 2018 at 09:48, James Hogan <[email protected]> wrote:
> On Thu, Feb 22, 2018 at 10:26:54AM +0100, Peter Zijlstra wrote:
>> On Wed, Feb 21, 2018 at 11:38:12PM +0000, James Hogan wrote:
>> > So lets call it a day and drop the Meta architecture port from the
>> > kernel. RIP Meta.
>>
>> So long, and thanks for all the fish!
>>
>> Nice cleanup though, most welcome :-)
>
> I thought you might like it ;-)
>
>> Acked-by: Peter Zijlstra (Intel) <[email protected]>
>
> Thanks
> James

RIP indeed. As I sit here listening to my META powered radio.... for
the series in general:

Acked-by: Graham Whaley <[email protected]>

2018-02-22 16:20:47

by Graham Whaley

[permalink] [raw]
Subject: Re: [PATCH 01/13] metag: Remove arch/metag/

>> >
>> > So lets call it a day and drop the Meta architecture port from the
>> > kernel. RIP Meta.

Oh, and James, I meant to ask/note - I guess that just leaves parisc
using STACK_GROWSUP... shame we could not ditch that as well then eh?

Graham

2018-02-22 16:40:34

by James Hogan

[permalink] [raw]
Subject: Re: [PATCH 01/13] metag: Remove arch/metag/

On Thu, Feb 22, 2018 at 04:19:31PM +0000, Graham Whaley wrote:
> >> >
> >> > So lets call it a day and drop the Meta architecture port from the
> >> > kernel. RIP Meta.
>
> Oh, and James, I meant to ask/note - I guess that just leaves parisc
> using STACK_GROWSUP... shame we could not ditch that as well then eh?

and just blackfin with the horrible underscore symbol prefix :P

Cheers
James


Attachments:
(No filename) (406.00 B)
signature.asc (849.00 B)
Digital signature
Download all attachments

2018-02-23 10:28:40

by Arnd Bergmann

[permalink] [raw]
Subject: Re: [PATCH 00/13] Remove metag architecture

On Thu, Feb 22, 2018 at 12:38 AM, James Hogan <[email protected]> wrote:
> These patches remove the metag architecture and tightly dependent
> drivers from the kernel. With the 4.16 kernel the ancient gcc 4.2.4
> based metag toolchain we have been using is hitting compiler bugs, so
> now seems a good time to drop it altogether.
>
> Quoting from patch 1:
>
> The earliest Meta architecture port of Linux I have a record of was an
> import of a Meta port of Linux v2.4.1 in February 2004, which was worked
> on significantly over the next few years by Graham Whaley, Will Newton,
> Matt Fleming, myself and others.
>
> Eventually the port was merged into mainline in v3.9 in March 2013, not
> long after Imagination Technologies bought MIPS Technologies and shifted
> its CPU focus over to the MIPS architecture.
>
> As a result, though the port was maintained for a while, kept on life
> support for a while longer, and useful for testing a few specific
> drivers for which I don't have ready access to the equivalent MIPS
> hardware, it is now essentially dead with no users.
>
> It is also stuck using an out-of-tree toolchain based on GCC 4.2.4 which
> is no longer maintained, now struggles to build modern kernels due to
> toolchain bugs, and doesn't itself build with a modern GCC. The latest
> buildroot port is still using an old uClibc snapshot which is no longer
> served, and the latest uClibc doesn't build with GCC 4.2.4.
>
> So lets call it a day and drop the Meta architecture port from the
> kernel. RIP Meta.

Since I brought up the architecture removal independently, I could
pick this up into a git tree that also has the removal of some of the
other architectures.

I see your tree is part of linux-next, so you could also just put it
in there and send a pull request at the merge window if you prefer.

The only real reason I see for a shared git tree would be to avoid
conflicts when we touch the same Kconfig files or #ifdefs in driver,
but Meta only appears in

config FRAME_POINTER
bool "Compile the kernel with frame pointers"
depends on DEBUG_KERNEL && \
(CRIS || M68K || FRV || UML || \
SUPERH || BLACKFIN || MN10300 || METAG) || \
ARCH_WANT_FRAME_POINTERS

and

include/trace/events/mmflags.h:#elif defined(CONFIG_PARISC) ||
defined(CONFIG_METAG) || defined(CONFIG_IA64)

so there is little risk.

Arnd

2018-02-23 10:55:41

by James Hogan

[permalink] [raw]
Subject: [PATCH v2 04/13] Drop a bunch of metag references

Now that arch/metag/ has been removed, drop a bunch of metag references
in various codes across the whole tree:
- VM_GROWSUP and __VM_ARCH_PECIFIC_1.
- MT_METAG_* ELF note types.
- METAG Kconfig dependencies (FRAME_POINTER) and ranges
(MAX_STACK_SIZE_MB).
- metag cases in tools (checkstack.pl, recordmcount.c, perf).

Signed-off-by: James Hogan <[email protected]>
Acked-by: Steven Rostedt (VMware) <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
Changes in v2:
- Drop CPUHP_AP_PERF_METAG_STARTING too (Guenter).
---
include/linux/cpuhotplug.h | 1 -
include/linux/mm.h | 2 --
include/trace/events/mmflags.h | 2 +-
include/uapi/linux/elf.h | 3 ---
lib/Kconfig.debug | 2 +-
mm/Kconfig | 7 +++----
scripts/checkstack.pl | 4 ----
scripts/recordmcount.c | 20 --------------------
tools/perf/perf-sys.h | 4 ----
9 files changed, 5 insertions(+), 40 deletions(-)

diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h
index 5172ad0daa7c..c7a950681f3a 100644
--- a/include/linux/cpuhotplug.h
+++ b/include/linux/cpuhotplug.h
@@ -108,7 +108,6 @@ enum cpuhp_state {
CPUHP_AP_PERF_X86_CQM_STARTING,
CPUHP_AP_PERF_X86_CSTATE_STARTING,
CPUHP_AP_PERF_XTENSA_STARTING,
- CPUHP_AP_PERF_METAG_STARTING,
CPUHP_AP_MIPS_OP_LOONGSON3_STARTING,
CPUHP_AP_ARM_SDEI_STARTING,
CPUHP_AP_ARM_VFP_STARTING,
diff --git a/include/linux/mm.h b/include/linux/mm.h
index ad06d42adb1a..ccac10682ce5 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -241,8 +241,6 @@ extern unsigned int kobjsize(const void *objp);
# define VM_SAO VM_ARCH_1 /* Strong Access Ordering (powerpc) */
#elif defined(CONFIG_PARISC)
# define VM_GROWSUP VM_ARCH_1
-#elif defined(CONFIG_METAG)
-# define VM_GROWSUP VM_ARCH_1
#elif defined(CONFIG_IA64)
# define VM_GROWSUP VM_ARCH_1
#elif !defined(CONFIG_MMU)
diff --git a/include/trace/events/mmflags.h b/include/trace/events/mmflags.h
index dbe1bb058c09..a81cffb76d89 100644
--- a/include/trace/events/mmflags.h
+++ b/include/trace/events/mmflags.h
@@ -115,7 +115,7 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" )
#define __VM_ARCH_SPECIFIC_1 {VM_PAT, "pat" }
#elif defined(CONFIG_PPC)
#define __VM_ARCH_SPECIFIC_1 {VM_SAO, "sao" }
-#elif defined(CONFIG_PARISC) || defined(CONFIG_METAG) || defined(CONFIG_IA64)
+#elif defined(CONFIG_PARISC) || defined(CONFIG_IA64)
#define __VM_ARCH_SPECIFIC_1 {VM_GROWSUP, "growsup" }
#elif !defined(CONFIG_MMU)
#define __VM_ARCH_SPECIFIC_1 {VM_MAPPED_COPY,"mappedcopy" }
diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
index 3bf73fb58045..e2535d6dcec7 100644
--- a/include/uapi/linux/elf.h
+++ b/include/uapi/linux/elf.h
@@ -420,9 +420,6 @@ typedef struct elf64_shdr {
#define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */
#define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
#define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension registers */
-#define NT_METAG_CBUF 0x500 /* Metag catch buffer registers */
-#define NT_METAG_RPIPE 0x501 /* Metag read pipeline state */
-#define NT_METAG_TLS 0x502 /* Metag TLS pointer */
#define NT_ARC_V2 0x600 /* ARCv2 accumulator/extra registers */

/* Note header in a PT_NOTE section */
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 6088408ef26c..d1c523e408e9 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -356,7 +356,7 @@ config FRAME_POINTER
bool "Compile the kernel with frame pointers"
depends on DEBUG_KERNEL && \
(CRIS || M68K || FRV || UML || \
- SUPERH || BLACKFIN || MN10300 || METAG) || \
+ SUPERH || BLACKFIN || MN10300) || \
ARCH_WANT_FRAME_POINTERS
default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS
help
diff --git a/mm/Kconfig b/mm/Kconfig
index c782e8fb7235..abefa573bcd8 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -627,15 +627,14 @@ config GENERIC_EARLY_IOREMAP
config MAX_STACK_SIZE_MB
int "Maximum user stack size for 32-bit processes (MB)"
default 80
- range 8 256 if METAG
range 8 2048
depends on STACK_GROWSUP && (!64BIT || COMPAT)
help
This is the maximum stack size in Megabytes in the VM layout of 32-bit
user processes when the stack grows upwards (currently only on parisc
- and metag arch). The stack will be located at the highest memory
- address minus the given value, unless the RLIMIT_STACK hard limit is
- changed to a smaller value in which case that is used.
+ arch). The stack will be located at the highest memory address minus
+ the given value, unless the RLIMIT_STACK hard limit is changed to a
+ smaller value in which case that is used.

A sane initial value is 80 MB.

diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index cb993801e4b2..eeb9ac8dbcfb 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -64,10 +64,6 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
# 2b6c: 4e56 fb70 linkw %fp,#-1168
# 1df770: defc ffe4 addaw #-28,%sp
$re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o;
- } elsif ($arch eq 'metag') {
- #400026fc: 40 00 00 82 ADD A0StP,A0StP,#0x8
- $re = qr/.*ADD.*A0StP,A0StP,\#(0x$x{1,8})/o;
- $funcre = qr/^$x* <[^\$](.*)>:$/;
} elsif ($arch eq 'mips64') {
#8800402c: 67bdfff0 daddiu sp,sp,-16
$re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index 16e086dcc567..8c9691c3329e 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -33,20 +33,6 @@
#include <string.h>
#include <unistd.h>

-/*
- * glibc synced up and added the metag number but didn't add the relocations.
- * Work around this in a crude manner for now.
- */
-#ifndef EM_METAG
-#define EM_METAG 174
-#endif
-#ifndef R_METAG_ADDR32
-#define R_METAG_ADDR32 2
-#endif
-#ifndef R_METAG_NONE
-#define R_METAG_NONE 3
-#endif
-
#ifndef EM_AARCH64
#define EM_AARCH64 183
#define R_AARCH64_NONE 0
@@ -538,12 +524,6 @@ do_file(char const *const fname)
gpfx = '_';
break;
case EM_IA_64: reltype = R_IA64_IMM64; gpfx = '_'; break;
- case EM_METAG: reltype = R_METAG_ADDR32;
- altmcount = "_mcount_wrapper";
- rel_type_nop = R_METAG_NONE;
- /* We happen to have the same requirement as MIPS */
- is_fake_mcount32 = MIPS32_is_fake_mcount;
- break;
case EM_MIPS: /* reltype: e_class */ gpfx = '_'; break;
case EM_PPC: reltype = R_PPC_ADDR32; gpfx = '_'; break;
case EM_PPC64: reltype = R_PPC64_ADDR64; gpfx = '_'; break;
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
index 36673f98d66b..3eb7a39169f6 100644
--- a/tools/perf/perf-sys.h
+++ b/tools/perf/perf-sys.h
@@ -46,10 +46,6 @@
#define CPUINFO_PROC {"Processor"}
#endif

-#ifdef __metag__
-#define CPUINFO_PROC {"CPU"}
-#endif
-
#ifdef __xtensa__
#define CPUINFO_PROC {"core ID"}
#endif
--
2.13.6


2018-02-23 11:03:13

by James Hogan

[permalink] [raw]
Subject: Re: [PATCH 00/13] Remove metag architecture

On Fri, Feb 23, 2018 at 11:26:58AM +0100, Arnd Bergmann wrote:
> On Thu, Feb 22, 2018 at 12:38 AM, James Hogan <[email protected]> wrote:
> > So lets call it a day and drop the Meta architecture port from the
> > kernel. RIP Meta.
>
> Since I brought up the architecture removal independently, I could
> pick this up into a git tree that also has the removal of some of the
> other architectures.
>
> I see your tree is part of linux-next, so you could also just put it
> in there and send a pull request at the merge window if you prefer.
>
> The only real reason I see for a shared git tree would be to avoid
> conflicts when we touch the same Kconfig files or #ifdefs in driver,
> but Meta only appears in
>
> config FRAME_POINTER
> bool "Compile the kernel with frame pointers"
> depends on DEBUG_KERNEL && \
> (CRIS || M68K || FRV || UML || \
> SUPERH || BLACKFIN || MN10300 || METAG) || \
> ARCH_WANT_FRAME_POINTERS
>
> and
>
> include/trace/events/mmflags.h:#elif defined(CONFIG_PARISC) ||
> defined(CONFIG_METAG) || defined(CONFIG_IA64)
>
> so there is little risk.

I'm happy to put v2 in linux-next now (only patch 4 has changed, I just
sent an updated version), and send you a pull request early next week so
you can take it from there. The patches can't be directly applied with
git-am anyway thanks to the -D option to make them more concise.

Sound okay?

Thanks
James


Attachments:
(No filename) (1.46 kB)
signature.asc (849.00 B)
Digital signature
Download all attachments

2018-02-23 12:27:11

by Arnd Bergmann

[permalink] [raw]
Subject: Re: [PATCH 00/13] Remove metag architecture

On Fri, Feb 23, 2018 at 12:02 PM, James Hogan <[email protected]> wrote:
> On Fri, Feb 23, 2018 at 11:26:58AM +0100, Arnd Bergmann wrote:
>> On Thu, Feb 22, 2018 at 12:38 AM, James Hogan <[email protected]> wrote:
>> > So lets call it a day and drop the Meta architecture port from the
>> > kernel. RIP Meta.
>>
>> Since I brought up the architecture removal independently, I could
>> pick this up into a git tree that also has the removal of some of the
>> other architectures.
>>
>> I see your tree is part of linux-next, so you could also just put it
>> in there and send a pull request at the merge window if you prefer.
>>
>> The only real reason I see for a shared git tree would be to avoid
>> conflicts when we touch the same Kconfig files or #ifdefs in driver,
>> but Meta only appears in
>>
>> config FRAME_POINTER
>> bool "Compile the kernel with frame pointers"
>> depends on DEBUG_KERNEL && \
>> (CRIS || M68K || FRV || UML || \
>> SUPERH || BLACKFIN || MN10300 || METAG) || \
>> ARCH_WANT_FRAME_POINTERS
>>
>> and
>>
>> include/trace/events/mmflags.h:#elif defined(CONFIG_PARISC) ||
>> defined(CONFIG_METAG) || defined(CONFIG_IA64)
>>
>> so there is little risk.
>
> I'm happy to put v2 in linux-next now (only patch 4 has changed, I just
> sent an updated version), and send you a pull request early next week so
> you can take it from there. The patches can't be directly applied with
> git-am anyway thanks to the -D option to make them more concise.
>
> Sound okay?

Yes, sounds good, thanks!

Arnd

2018-02-23 14:29:57

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH v2 04/13] Drop a bunch of metag references

On 02/23/2018 02:53 AM, James Hogan wrote:
> Now that arch/metag/ has been removed, drop a bunch of metag references
> in various codes across the whole tree:
> - VM_GROWSUP and __VM_ARCH_PECIFIC_1.
> - MT_METAG_* ELF note types.
> - METAG Kconfig dependencies (FRAME_POINTER) and ranges
> (MAX_STACK_SIZE_MB).
> - metag cases in tools (checkstack.pl, recordmcount.c, perf).
>
> Signed-off-by: James Hogan <[email protected]>
> Acked-by: Steven Rostedt (VMware) <[email protected]>
> Acked-by: Peter Zijlstra (Intel) <[email protected]>
> Cc: Ingo Molnar <[email protected]>
> Cc: Arnaldo Carvalho de Melo <[email protected]>
> Cc: Alexander Shishkin <[email protected]>
> Cc: Jiri Olsa <[email protected]>
> Cc: Namhyung Kim <[email protected]>
> Cc: Guenter Roeck <[email protected]>
> Cc: [email protected]
> Cc: [email protected]

Reviewed-by: Guenter Roeck <[email protected]>

> ---
> Changes in v2:
> - Drop CPUHP_AP_PERF_METAG_STARTING too (Guenter).
> ---
> include/linux/cpuhotplug.h | 1 -
> include/linux/mm.h | 2 --
> include/trace/events/mmflags.h | 2 +-
> include/uapi/linux/elf.h | 3 ---
> lib/Kconfig.debug | 2 +-
> mm/Kconfig | 7 +++----
> scripts/checkstack.pl | 4 ----
> scripts/recordmcount.c | 20 --------------------
> tools/perf/perf-sys.h | 4 ----
> 9 files changed, 5 insertions(+), 40 deletions(-)
>
> diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h
> index 5172ad0daa7c..c7a950681f3a 100644
> --- a/include/linux/cpuhotplug.h
> +++ b/include/linux/cpuhotplug.h
> @@ -108,7 +108,6 @@ enum cpuhp_state {
> CPUHP_AP_PERF_X86_CQM_STARTING,
> CPUHP_AP_PERF_X86_CSTATE_STARTING,
> CPUHP_AP_PERF_XTENSA_STARTING,
> - CPUHP_AP_PERF_METAG_STARTING,
> CPUHP_AP_MIPS_OP_LOONGSON3_STARTING,
> CPUHP_AP_ARM_SDEI_STARTING,
> CPUHP_AP_ARM_VFP_STARTING,
> diff --git a/include/linux/mm.h b/include/linux/mm.h
> index ad06d42adb1a..ccac10682ce5 100644
> --- a/include/linux/mm.h
> +++ b/include/linux/mm.h
> @@ -241,8 +241,6 @@ extern unsigned int kobjsize(const void *objp);
> # define VM_SAO VM_ARCH_1 /* Strong Access Ordering (powerpc) */
> #elif defined(CONFIG_PARISC)
> # define VM_GROWSUP VM_ARCH_1
> -#elif defined(CONFIG_METAG)
> -# define VM_GROWSUP VM_ARCH_1
> #elif defined(CONFIG_IA64)
> # define VM_GROWSUP VM_ARCH_1
> #elif !defined(CONFIG_MMU)
> diff --git a/include/trace/events/mmflags.h b/include/trace/events/mmflags.h
> index dbe1bb058c09..a81cffb76d89 100644
> --- a/include/trace/events/mmflags.h
> +++ b/include/trace/events/mmflags.h
> @@ -115,7 +115,7 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" )
> #define __VM_ARCH_SPECIFIC_1 {VM_PAT, "pat" }
> #elif defined(CONFIG_PPC)
> #define __VM_ARCH_SPECIFIC_1 {VM_SAO, "sao" }
> -#elif defined(CONFIG_PARISC) || defined(CONFIG_METAG) || defined(CONFIG_IA64)
> +#elif defined(CONFIG_PARISC) || defined(CONFIG_IA64)
> #define __VM_ARCH_SPECIFIC_1 {VM_GROWSUP, "growsup" }
> #elif !defined(CONFIG_MMU)
> #define __VM_ARCH_SPECIFIC_1 {VM_MAPPED_COPY,"mappedcopy" }
> diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
> index 3bf73fb58045..e2535d6dcec7 100644
> --- a/include/uapi/linux/elf.h
> +++ b/include/uapi/linux/elf.h
> @@ -420,9 +420,6 @@ typedef struct elf64_shdr {
> #define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */
> #define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
> #define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension registers */
> -#define NT_METAG_CBUF 0x500 /* Metag catch buffer registers */
> -#define NT_METAG_RPIPE 0x501 /* Metag read pipeline state */
> -#define NT_METAG_TLS 0x502 /* Metag TLS pointer */
> #define NT_ARC_V2 0x600 /* ARCv2 accumulator/extra registers */
>
> /* Note header in a PT_NOTE section */
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 6088408ef26c..d1c523e408e9 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -356,7 +356,7 @@ config FRAME_POINTER
> bool "Compile the kernel with frame pointers"
> depends on DEBUG_KERNEL && \
> (CRIS || M68K || FRV || UML || \
> - SUPERH || BLACKFIN || MN10300 || METAG) || \
> + SUPERH || BLACKFIN || MN10300) || \
> ARCH_WANT_FRAME_POINTERS
> default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS
> help
> diff --git a/mm/Kconfig b/mm/Kconfig
> index c782e8fb7235..abefa573bcd8 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -627,15 +627,14 @@ config GENERIC_EARLY_IOREMAP
> config MAX_STACK_SIZE_MB
> int "Maximum user stack size for 32-bit processes (MB)"
> default 80
> - range 8 256 if METAG
> range 8 2048
> depends on STACK_GROWSUP && (!64BIT || COMPAT)
> help
> This is the maximum stack size in Megabytes in the VM layout of 32-bit
> user processes when the stack grows upwards (currently only on parisc
> - and metag arch). The stack will be located at the highest memory
> - address minus the given value, unless the RLIMIT_STACK hard limit is
> - changed to a smaller value in which case that is used.
> + arch). The stack will be located at the highest memory address minus
> + the given value, unless the RLIMIT_STACK hard limit is changed to a
> + smaller value in which case that is used.
>
> A sane initial value is 80 MB.
>
> diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
> index cb993801e4b2..eeb9ac8dbcfb 100755
> --- a/scripts/checkstack.pl
> +++ b/scripts/checkstack.pl
> @@ -64,10 +64,6 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
> # 2b6c: 4e56 fb70 linkw %fp,#-1168
> # 1df770: defc ffe4 addaw #-28,%sp
> $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o;
> - } elsif ($arch eq 'metag') {
> - #400026fc: 40 00 00 82 ADD A0StP,A0StP,#0x8
> - $re = qr/.*ADD.*A0StP,A0StP,\#(0x$x{1,8})/o;
> - $funcre = qr/^$x* <[^\$](.*)>:$/;
> } elsif ($arch eq 'mips64') {
> #8800402c: 67bdfff0 daddiu sp,sp,-16
> $re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
> diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
> index 16e086dcc567..8c9691c3329e 100644
> --- a/scripts/recordmcount.c
> +++ b/scripts/recordmcount.c
> @@ -33,20 +33,6 @@
> #include <string.h>
> #include <unistd.h>
>
> -/*
> - * glibc synced up and added the metag number but didn't add the relocations.
> - * Work around this in a crude manner for now.
> - */
> -#ifndef EM_METAG
> -#define EM_METAG 174
> -#endif
> -#ifndef R_METAG_ADDR32
> -#define R_METAG_ADDR32 2
> -#endif
> -#ifndef R_METAG_NONE
> -#define R_METAG_NONE 3
> -#endif
> -
> #ifndef EM_AARCH64
> #define EM_AARCH64 183
> #define R_AARCH64_NONE 0
> @@ -538,12 +524,6 @@ do_file(char const *const fname)
> gpfx = '_';
> break;
> case EM_IA_64: reltype = R_IA64_IMM64; gpfx = '_'; break;
> - case EM_METAG: reltype = R_METAG_ADDR32;
> - altmcount = "_mcount_wrapper";
> - rel_type_nop = R_METAG_NONE;
> - /* We happen to have the same requirement as MIPS */
> - is_fake_mcount32 = MIPS32_is_fake_mcount;
> - break;
> case EM_MIPS: /* reltype: e_class */ gpfx = '_'; break;
> case EM_PPC: reltype = R_PPC_ADDR32; gpfx = '_'; break;
> case EM_PPC64: reltype = R_PPC64_ADDR64; gpfx = '_'; break;
> diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
> index 36673f98d66b..3eb7a39169f6 100644
> --- a/tools/perf/perf-sys.h
> +++ b/tools/perf/perf-sys.h
> @@ -46,10 +46,6 @@
> #define CPUINFO_PROC {"Processor"}
> #endif
>
> -#ifdef __metag__
> -#define CPUINFO_PROC {"CPU"}
> -#endif
> -
> #ifdef __xtensa__
> #define CPUINFO_PROC {"core ID"}
> #endif
>


2018-02-26 11:32:29

by Sean Young

[permalink] [raw]
Subject: Re: [PATCH 12/13] media: img-ir: Drop METAG dependency

On Wed, Feb 21, 2018 at 11:38:24PM +0000, James Hogan wrote:
> Now that arch/metag/ has been removed, remove the METAG dependency from
> the IMG IR device driver. The hardware is also present on MIPS SoCs so
> the driver still has value.
>
> Signed-off-by: James Hogan <[email protected]>
> Cc: Mauro Carvalho Chehab <[email protected]>
> Cc: Mauro Carvalho Chehab <[email protected]>
> Cc: [email protected]
> Cc: [email protected]

Acked-by: Sean Young <[email protected]>


> ---
> drivers/media/rc/img-ir/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/rc/img-ir/Kconfig b/drivers/media/rc/img-ir/Kconfig
> index a896d3c83a1c..d2c6617d468e 100644
> --- a/drivers/media/rc/img-ir/Kconfig
> +++ b/drivers/media/rc/img-ir/Kconfig
> @@ -1,7 +1,7 @@
> config IR_IMG
> tristate "ImgTec IR Decoder"
> depends on RC_CORE
> - depends on METAG || MIPS || COMPILE_TEST
> + depends on MIPS || COMPILE_TEST
> select IR_IMG_HW if !IR_IMG_RAW
> help
> Say Y or M here if you want to use the ImgTec infrared decoder
> --
> 2.13.6

2018-02-27 13:40:24

by James Hogan

[permalink] [raw]
Subject: [GIT PULL] Remove metag architecture

Hi Arnd,

On Fri, Feb 23, 2018 at 01:26:09PM +0100, Arnd Bergmann wrote:
> On Fri, Feb 23, 2018 at 12:02 PM, James Hogan <[email protected]> wrote:
> > I'm happy to put v2 in linux-next now (only patch 4 has changed, I just
> > sent an updated version), and send you a pull request early next week so
> > you can take it from there. The patches can't be directly applied with
> > git-am anyway thanks to the -D option to make them more concise.
> >
> > Sound okay?
>
> Yes, sounds good, thanks!

As discussed, here is a tagged branch to remove arch/metag and dependent
drivers. Its basically v2 with some acks added.

Cheers
James

The following changes since commit 91ab883eb21325ad80f3473633f794c78ac87f51:

Linux 4.16-rc2 (2018-02-18 17:29:42 -0800)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag.git tags/metag_remove

for you to fetch changes up to ef9fb83815db7d7e03da9a0904b4ef352e633922:

i2c: img-scb: Drop METAG dependency (2018-02-26 14:58:09 +0000)

----------------------------------------------------------------
Remove metag architecture

These patches remove the metag architecture and tightly dependent
drivers from the kernel. With the 4.16 kernel the ancient gcc 4.2.4
based metag toolchain we have been using is hitting compiler bugs, so
now seems a good time to drop it altogether.

----------------------------------------------------------------
James Hogan (13):
metag: Remove arch/metag/
docs: Remove metag docs
docs: Remove remaining references to metag
Drop a bunch of metag references
irqchip: Remove metag irqchip drivers
clocksource: Remove metag generic timer driver
tty: Remove metag DA TTY and console driver
MAINTAINERS/CREDITS: Drop METAG ARCHITECTURE
pinctrl: Drop TZ1090 drivers
gpio: Drop TZ1090 drivers
watchdog: imgpdc: Drop METAG dependency
media: img-ir: Drop METAG dependency
i2c: img-scb: Drop METAG dependency

CREDITS | 5 +
Documentation/00-INDEX | 2 -
Documentation/admin-guide/kernel-parameters.txt | 4 -
Documentation/dev-tools/kmemleak.rst | 2 +-
.../devicetree/bindings/gpio/gpio-tz1090-pdc.txt | 45 -
.../devicetree/bindings/gpio/gpio-tz1090.txt | 88 -
Documentation/devicetree/bindings/metag/meta.txt | 30 -
.../bindings/pinctrl/img,tz1090-pdc-pinctrl.txt | 127 --
.../bindings/pinctrl/img,tz1090-pinctrl.txt | 227 ---
.../features/core/BPF-JIT/arch-support.txt | 1 -
.../core/generic-idle-thread/arch-support.txt | 1 -
.../features/core/jump-labels/arch-support.txt | 1 -
.../features/core/tracehook/arch-support.txt | 1 -
.../features/debug/KASAN/arch-support.txt | 1 -
.../debug/gcov-profile-all/arch-support.txt | 1 -
Documentation/features/debug/kgdb/arch-support.txt | 1 -
.../debug/kprobes-on-ftrace/arch-support.txt | 1 -
.../features/debug/kprobes/arch-support.txt | 1 -
.../features/debug/kretprobes/arch-support.txt | 1 -
.../features/debug/optprobes/arch-support.txt | 1 -
.../features/debug/stackprotector/arch-support.txt | 1 -
.../features/debug/uprobes/arch-support.txt | 1 -
.../debug/user-ret-profiler/arch-support.txt | 1 -
.../features/io/dma-api-debug/arch-support.txt | 1 -
.../features/io/dma-contiguous/arch-support.txt | 1 -
.../features/io/sg-chain/arch-support.txt | 1 -
.../features/lib/strncasecmp/arch-support.txt | 1 -
.../locking/cmpxchg-local/arch-support.txt | 1 -
.../features/locking/lockdep/arch-support.txt | 1 -
.../locking/queued-rwlocks/arch-support.txt | 1 -
.../locking/queued-spinlocks/arch-support.txt | 1 -
.../locking/rwsem-optimized/arch-support.txt | 1 -
.../features/perf/kprobes-event/arch-support.txt | 1 -
.../features/perf/perf-regs/arch-support.txt | 1 -
.../features/perf/perf-stackdump/arch-support.txt | 1 -
.../sched/membarrier-sync-core/arch-support.txt | 1 -
.../features/sched/numa-balancing/arch-support.txt | 1 -
.../seccomp/seccomp-filter/arch-support.txt | 1 -
.../time/arch-tick-broadcast/arch-support.txt | 1 -
.../features/time/clockevents/arch-support.txt | 1 -
.../time/context-tracking/arch-support.txt | 1 -
.../features/time/irq-time-acct/arch-support.txt | 1 -
.../time/modern-timekeeping/arch-support.txt | 1 -
.../features/time/virt-cpuacct/arch-support.txt | 1 -
.../features/vm/ELF-ASLR/arch-support.txt | 1 -
.../features/vm/PG_uncached/arch-support.txt | 1 -
Documentation/features/vm/THP/arch-support.txt | 1 -
Documentation/features/vm/TLB/arch-support.txt | 1 -
.../features/vm/huge-vmap/arch-support.txt | 1 -
.../features/vm/ioremap_prot/arch-support.txt | 1 -
.../features/vm/numa-memblock/arch-support.txt | 1 -
.../features/vm/pte_special/arch-support.txt | 1 -
Documentation/metag/00-INDEX | 4 -
Documentation/metag/kernel-ABI.txt | 256 ---
MAINTAINERS | 14 -
arch/metag/Kconfig | 287 ---
arch/metag/Kconfig.debug | 34 -
arch/metag/Kconfig.soc | 69 -
arch/metag/Makefile | 89 -
arch/metag/boot/.gitignore | 3 -
arch/metag/boot/Makefile | 68 -
arch/metag/boot/dts/Makefile | 16 -
arch/metag/boot/dts/skeleton.dts | 10 -
arch/metag/boot/dts/skeleton.dtsi | 15 -
arch/metag/boot/dts/tz1090.dtsi | 108 --
arch/metag/boot/dts/tz1090_generic.dts | 10 -
arch/metag/configs/meta1_defconfig | 39 -
arch/metag/configs/meta2_defconfig | 40 -
arch/metag/configs/meta2_smp_defconfig | 41 -
arch/metag/configs/tz1090_defconfig | 42 -
arch/metag/include/asm/Kbuild | 33 -
arch/metag/include/asm/atomic.h | 49 -
arch/metag/include/asm/atomic_lnkget.h | 204 --
arch/metag/include/asm/atomic_lock1.h | 157 --
arch/metag/include/asm/barrier.h | 85 -
arch/metag/include/asm/bitops.h | 127 --
arch/metag/include/asm/bug.h | 13 -
arch/metag/include/asm/cache.h | 24 -
arch/metag/include/asm/cacheflush.h | 251 ---
arch/metag/include/asm/cachepart.h | 43 -
arch/metag/include/asm/checksum.h | 93 -
arch/metag/include/asm/clock.h | 59 -
arch/metag/include/asm/cmpxchg.h | 64 -
arch/metag/include/asm/cmpxchg_irq.h | 43 -
arch/metag/include/asm/cmpxchg_lnkget.h | 87 -
arch/metag/include/asm/cmpxchg_lock1.h | 49 -
arch/metag/include/asm/core_reg.h | 36 -
arch/metag/include/asm/cpu.h | 15 -
arch/metag/include/asm/da.h | 44 -
arch/metag/include/asm/delay.h | 30 -
arch/metag/include/asm/div64.h | 13 -
arch/metag/include/asm/dma-mapping.h | 12 -
arch/metag/include/asm/elf.h | 126 --
arch/metag/include/asm/fixmap.h | 69 -
arch/metag/include/asm/ftrace.h | 24 -
arch/metag/include/asm/global_lock.h | 101 -
arch/metag/include/asm/highmem.h | 62 -
arch/metag/include/asm/hugetlb.h | 75 -
arch/metag/include/asm/hwthread.h | 41 -
arch/metag/include/asm/io.h | 170 --
arch/metag/include/asm/irq.h | 38 -
arch/metag/include/asm/irqflags.h | 94 -
arch/metag/include/asm/l2cache.h | 259 ---
arch/metag/include/asm/linkage.h | 8 -
arch/metag/include/asm/mach/arch.h | 86 -
arch/metag/include/asm/metag_isa.h | 81 -
arch/metag/include/asm/metag_mem.h | 1109 -----------
arch/metag/include/asm/metag_regs.h | 1184 ------------
arch/metag/include/asm/mman.h | 12 -
arch/metag/include/asm/mmu.h | 78 -
arch/metag/include/asm/mmu_context.h | 115 --
arch/metag/include/asm/mmzone.h | 43 -
arch/metag/include/asm/module.h | 38 -
arch/metag/include/asm/page.h | 129 --
arch/metag/include/asm/perf_event.h | 4 -
arch/metag/include/asm/pgalloc.h | 83 -
arch/metag/include/asm/pgtable-bits.h | 105 -
arch/metag/include/asm/pgtable.h | 270 ---
arch/metag/include/asm/processor.h | 201 --
arch/metag/include/asm/ptrace.h | 61 -
arch/metag/include/asm/setup.h | 10 -
arch/metag/include/asm/smp.h | 28 -
arch/metag/include/asm/sparsemem.h | 14 -
arch/metag/include/asm/spinlock.h | 19 -
arch/metag/include/asm/spinlock_lnkget.h | 213 ---
arch/metag/include/asm/spinlock_lock1.h | 165 --
arch/metag/include/asm/spinlock_types.h | 21 -
arch/metag/include/asm/stacktrace.h | 21 -
arch/metag/include/asm/string.h | 14 -
arch/metag/include/asm/switch.h | 21 -
arch/metag/include/asm/syscall.h | 104 -
arch/metag/include/asm/syscalls.h | 40 -
arch/metag/include/asm/tbx.h | 1420 --------------
arch/metag/include/asm/tcm.h | 31 -
arch/metag/include/asm/thread_info.h | 141 --
arch/metag/include/asm/tlb.h | 37 -
arch/metag/include/asm/tlbflush.h | 78 -
arch/metag/include/asm/topology.h | 28 -
arch/metag/include/asm/traps.h | 48 -
arch/metag/include/asm/uaccess.h | 213 ---
arch/metag/include/asm/unistd.h | 12 -
arch/metag/include/asm/user_gateway.h | 45 -
arch/metag/include/uapi/asm/Kbuild | 31 -
arch/metag/include/uapi/asm/byteorder.h | 2 -
arch/metag/include/uapi/asm/ech.h | 16 -
arch/metag/include/uapi/asm/ptrace.h | 114 --
arch/metag/include/uapi/asm/sigcontext.h | 32 -
arch/metag/include/uapi/asm/siginfo.h | 16 -
arch/metag/include/uapi/asm/swab.h | 27 -
arch/metag/include/uapi/asm/unistd.h | 24 -
arch/metag/kernel/.gitignore | 1 -
arch/metag/kernel/Makefile | 40 -
arch/metag/kernel/asm-offsets.c | 15 -
arch/metag/kernel/cachepart.c | 132 --
arch/metag/kernel/clock.c | 110 --
arch/metag/kernel/core_reg.c | 118 --
arch/metag/kernel/da.c | 25 -
arch/metag/kernel/devtree.c | 57 -
arch/metag/kernel/dma.c | 588 ------
arch/metag/kernel/ftrace.c | 121 --
arch/metag/kernel/ftrace_stub.S | 62 -
arch/metag/kernel/head.S | 66 -
arch/metag/kernel/irq.c | 293 ---
arch/metag/kernel/kick.c | 110 --
arch/metag/kernel/machines.c | 21 -
arch/metag/kernel/metag_ksyms.c | 55 -
arch/metag/kernel/module.c | 284 ---
arch/metag/kernel/perf/Makefile | 3 -
arch/metag/kernel/perf/perf_event.c | 879 ---------
arch/metag/kernel/perf/perf_event.h | 106 --
arch/metag/kernel/perf_callchain.c | 97 -
arch/metag/kernel/process.c | 448 -----
arch/metag/kernel/ptrace.c | 427 -----
arch/metag/kernel/setup.c | 622 ------
arch/metag/kernel/signal.c | 336 ----
arch/metag/kernel/smp.c | 668 -------
arch/metag/kernel/stacktrace.c | 187 --
arch/metag/kernel/sys_metag.c | 181 --
arch/metag/kernel/tbiunexp.S | 23 -
arch/metag/kernel/tcm.c | 152 --
arch/metag/kernel/time.c | 26 -
arch/metag/kernel/topology.c | 78 -
arch/metag/kernel/traps.c | 992 ----------
arch/metag/kernel/user_gateway.S | 98 -
arch/metag/kernel/vmlinux.lds.S | 74 -
arch/metag/lib/Makefile | 23 -
arch/metag/lib/ashldi3.S | 34 -
arch/metag/lib/ashrdi3.S | 34 -
arch/metag/lib/checksum.c | 167 --
arch/metag/lib/clear_page.S | 18 -
arch/metag/lib/cmpdi2.S | 33 -
arch/metag/lib/copy_page.S | 21 -
arch/metag/lib/delay.c | 57 -
arch/metag/lib/div64.S | 109 --
arch/metag/lib/divsi3.S | 101 -
arch/metag/lib/ip_fast_csum.S | 33 -
arch/metag/lib/lshrdi3.S | 34 -
arch/metag/lib/memcpy.S | 186 --
arch/metag/lib/memmove.S | 346 ----
arch/metag/lib/memset.S | 87 -
arch/metag/lib/modsi3.S | 39 -
arch/metag/lib/muldi3.S | 45 -
arch/metag/lib/ucmpdi2.S | 28 -
arch/metag/lib/usercopy.c | 1257 ------------
arch/metag/mm/Kconfig | 147 --
arch/metag/mm/Makefile | 20 -
arch/metag/mm/cache.c | 521 -----
arch/metag/mm/extable.c | 15 -
arch/metag/mm/fault.c | 247 ---
arch/metag/mm/highmem.c | 122 --
arch/metag/mm/hugetlbpage.c | 251 ---
arch/metag/mm/init.c | 408 ----
arch/metag/mm/ioremap.c | 90 -
arch/metag/mm/l2cache.c | 193 --
arch/metag/mm/maccess.c | 69 -
arch/metag/mm/mmu-meta1.c | 157 --
arch/metag/mm/mmu-meta2.c | 208 --
arch/metag/mm/numa.c | 82 -
arch/metag/oprofile/Makefile | 18 -
arch/metag/oprofile/backtrace.c | 63 -
arch/metag/oprofile/backtrace.h | 7 -
arch/metag/oprofile/common.c | 66 -
arch/metag/tbx/Makefile | 22 -
arch/metag/tbx/tbicore.S | 136 --
arch/metag/tbx/tbictx.S | 366 ----
arch/metag/tbx/tbictxfpu.S | 190 --
arch/metag/tbx/tbidefr.S | 175 --
arch/metag/tbx/tbidspram.S | 161 --
arch/metag/tbx/tbilogf.S | 48 -
arch/metag/tbx/tbipcx.S | 451 -----
arch/metag/tbx/tbiroot.S | 87 -
arch/metag/tbx/tbisoft.S | 237 ---
arch/metag/tbx/tbistring.c | 114 --
arch/metag/tbx/tbitimer.S | 207 --
drivers/clocksource/Kconfig | 5 -
drivers/clocksource/Makefile | 1 -
drivers/clocksource/metag_generic.c | 161 --
drivers/gpio/Kconfig | 15 -
drivers/gpio/Makefile | 2 -
drivers/gpio/gpio-tz1090-pdc.c | 231 ---
drivers/gpio/gpio-tz1090.c | 602 ------
drivers/i2c/busses/Kconfig | 2 +-
drivers/irqchip/Makefile | 2 -
drivers/irqchip/irq-metag-ext.c | 871 ---------
drivers/irqchip/irq-metag.c | 343 ----
drivers/media/rc/img-ir/Kconfig | 2 +-
drivers/pinctrl/Kconfig | 12 -
drivers/pinctrl/Makefile | 2 -
drivers/pinctrl/pinctrl-tz1090-pdc.c | 989 ----------
drivers/pinctrl/pinctrl-tz1090.c | 2005 --------------------
drivers/tty/Kconfig | 13 -
drivers/tty/Makefile | 1 -
drivers/tty/metag_da.c | 665 -------
drivers/watchdog/Kconfig | 2 +-
include/clocksource/metag_generic.h | 21 -
include/linux/cpuhotplug.h | 2 -
include/linux/irqchip/metag-ext.h | 34 -
include/linux/irqchip/metag.h | 25 -
include/linux/mm.h | 2 -
include/trace/events/mmflags.h | 2 +-
include/uapi/linux/elf.h | 3 -
lib/Kconfig.debug | 2 +-
mm/Kconfig | 7 +-
scripts/checkstack.pl | 4 -
scripts/recordmcount.c | 20 -
tools/perf/perf-sys.h | 4 -
266 files changed, 14 insertions(+), 31963 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-tz1090-pdc.txt
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-tz1090.txt
delete mode 100644 Documentation/devicetree/bindings/metag/meta.txt
delete mode 100644 Documentation/devicetree/bindings/pinctrl/img,tz1090-pdc-pinctrl.txt
delete mode 100644 Documentation/devicetree/bindings/pinctrl/img,tz1090-pinctrl.txt
delete mode 100644 Documentation/metag/00-INDEX
delete mode 100644 Documentation/metag/kernel-ABI.txt
delete mode 100644 arch/metag/Kconfig
delete mode 100644 arch/metag/Kconfig.debug
delete mode 100644 arch/metag/Kconfig.soc
delete mode 100644 arch/metag/Makefile
delete mode 100644 arch/metag/boot/.gitignore
delete mode 100644 arch/metag/boot/Makefile
delete mode 100644 arch/metag/boot/dts/Makefile
delete mode 100644 arch/metag/boot/dts/skeleton.dts
delete mode 100644 arch/metag/boot/dts/skeleton.dtsi
delete mode 100644 arch/metag/boot/dts/tz1090.dtsi
delete mode 100644 arch/metag/boot/dts/tz1090_generic.dts
delete mode 100644 arch/metag/configs/meta1_defconfig
delete mode 100644 arch/metag/configs/meta2_defconfig
delete mode 100644 arch/metag/configs/meta2_smp_defconfig
delete mode 100644 arch/metag/configs/tz1090_defconfig
delete mode 100644 arch/metag/include/asm/Kbuild
delete mode 100644 arch/metag/include/asm/atomic.h
delete mode 100644 arch/metag/include/asm/atomic_lnkget.h
delete mode 100644 arch/metag/include/asm/atomic_lock1.h
delete mode 100644 arch/metag/include/asm/barrier.h
delete mode 100644 arch/metag/include/asm/bitops.h
delete mode 100644 arch/metag/include/asm/bug.h
delete mode 100644 arch/metag/include/asm/cache.h
delete mode 100644 arch/metag/include/asm/cacheflush.h
delete mode 100644 arch/metag/include/asm/cachepart.h
delete mode 100644 arch/metag/include/asm/checksum.h
delete mode 100644 arch/metag/include/asm/clock.h
delete mode 100644 arch/metag/include/asm/cmpxchg.h
delete mode 100644 arch/metag/include/asm/cmpxchg_irq.h
delete mode 100644 arch/metag/include/asm/cmpxchg_lnkget.h
delete mode 100644 arch/metag/include/asm/cmpxchg_lock1.h
delete mode 100644 arch/metag/include/asm/core_reg.h
delete mode 100644 arch/metag/include/asm/cpu.h
delete mode 100644 arch/metag/include/asm/da.h
delete mode 100644 arch/metag/include/asm/delay.h
delete mode 100644 arch/metag/include/asm/div64.h
delete mode 100644 arch/metag/include/asm/dma-mapping.h
delete mode 100644 arch/metag/include/asm/elf.h
delete mode 100644 arch/metag/include/asm/fixmap.h
delete mode 100644 arch/metag/include/asm/ftrace.h
delete mode 100644 arch/metag/include/asm/global_lock.h
delete mode 100644 arch/metag/include/asm/highmem.h
delete mode 100644 arch/metag/include/asm/hugetlb.h
delete mode 100644 arch/metag/include/asm/hwthread.h
delete mode 100644 arch/metag/include/asm/io.h
delete mode 100644 arch/metag/include/asm/irq.h
delete mode 100644 arch/metag/include/asm/irqflags.h
delete mode 100644 arch/metag/include/asm/l2cache.h
delete mode 100644 arch/metag/include/asm/linkage.h
delete mode 100644 arch/metag/include/asm/mach/arch.h
delete mode 100644 arch/metag/include/asm/metag_isa.h
delete mode 100644 arch/metag/include/asm/metag_mem.h
delete mode 100644 arch/metag/include/asm/metag_regs.h
delete mode 100644 arch/metag/include/asm/mman.h
delete mode 100644 arch/metag/include/asm/mmu.h
delete mode 100644 arch/metag/include/asm/mmu_context.h
delete mode 100644 arch/metag/include/asm/mmzone.h
delete mode 100644 arch/metag/include/asm/module.h
delete mode 100644 arch/metag/include/asm/page.h
delete mode 100644 arch/metag/include/asm/perf_event.h
delete mode 100644 arch/metag/include/asm/pgalloc.h
delete mode 100644 arch/metag/include/asm/pgtable-bits.h
delete mode 100644 arch/metag/include/asm/pgtable.h
delete mode 100644 arch/metag/include/asm/processor.h
delete mode 100644 arch/metag/include/asm/ptrace.h
delete mode 100644 arch/metag/include/asm/setup.h
delete mode 100644 arch/metag/include/asm/smp.h
delete mode 100644 arch/metag/include/asm/sparsemem.h
delete mode 100644 arch/metag/include/asm/spinlock.h
delete mode 100644 arch/metag/include/asm/spinlock_lnkget.h
delete mode 100644 arch/metag/include/asm/spinlock_lock1.h
delete mode 100644 arch/metag/include/asm/spinlock_types.h
delete mode 100644 arch/metag/include/asm/stacktrace.h
delete mode 100644 arch/metag/include/asm/string.h
delete mode 100644 arch/metag/include/asm/switch.h
delete mode 100644 arch/metag/include/asm/syscall.h
delete mode 100644 arch/metag/include/asm/syscalls.h
delete mode 100644 arch/metag/include/asm/tbx.h
delete mode 100644 arch/metag/include/asm/tcm.h
delete mode 100644 arch/metag/include/asm/thread_info.h
delete mode 100644 arch/metag/include/asm/tlb.h
delete mode 100644 arch/metag/include/asm/tlbflush.h
delete mode 100644 arch/metag/include/asm/topology.h
delete mode 100644 arch/metag/include/asm/traps.h
delete mode 100644 arch/metag/include/asm/uaccess.h
delete mode 100644 arch/metag/include/asm/unistd.h
delete mode 100644 arch/metag/include/asm/user_gateway.h
delete mode 100644 arch/metag/include/uapi/asm/Kbuild
delete mode 100644 arch/metag/include/uapi/asm/byteorder.h
delete mode 100644 arch/metag/include/uapi/asm/ech.h
delete mode 100644 arch/metag/include/uapi/asm/ptrace.h
delete mode 100644 arch/metag/include/uapi/asm/sigcontext.h
delete mode 100644 arch/metag/include/uapi/asm/siginfo.h
delete mode 100644 arch/metag/include/uapi/asm/swab.h
delete mode 100644 arch/metag/include/uapi/asm/unistd.h
delete mode 100644 arch/metag/kernel/.gitignore
delete mode 100644 arch/metag/kernel/Makefile
delete mode 100644 arch/metag/kernel/asm-offsets.c
delete mode 100644 arch/metag/kernel/cachepart.c
delete mode 100644 arch/metag/kernel/clock.c
delete mode 100644 arch/metag/kernel/core_reg.c
delete mode 100644 arch/metag/kernel/da.c
delete mode 100644 arch/metag/kernel/devtree.c
delete mode 100644 arch/metag/kernel/dma.c
delete mode 100644 arch/metag/kernel/ftrace.c
delete mode 100644 arch/metag/kernel/ftrace_stub.S
delete mode 100644 arch/metag/kernel/head.S
delete mode 100644 arch/metag/kernel/irq.c
delete mode 100644 arch/metag/kernel/kick.c
delete mode 100644 arch/metag/kernel/machines.c
delete mode 100644 arch/metag/kernel/metag_ksyms.c
delete mode 100644 arch/metag/kernel/module.c
delete mode 100644 arch/metag/kernel/perf/Makefile
delete mode 100644 arch/metag/kernel/perf/perf_event.c
delete mode 100644 arch/metag/kernel/perf/perf_event.h
delete mode 100644 arch/metag/kernel/perf_callchain.c
delete mode 100644 arch/metag/kernel/process.c
delete mode 100644 arch/metag/kernel/ptrace.c
delete mode 100644 arch/metag/kernel/setup.c
delete mode 100644 arch/metag/kernel/signal.c
delete mode 100644 arch/metag/kernel/smp.c
delete mode 100644 arch/metag/kernel/stacktrace.c
delete mode 100644 arch/metag/kernel/sys_metag.c
delete mode 100644 arch/metag/kernel/tbiunexp.S
delete mode 100644 arch/metag/kernel/tcm.c
delete mode 100644 arch/metag/kernel/time.c
delete mode 100644 arch/metag/kernel/topology.c
delete mode 100644 arch/metag/kernel/traps.c
delete mode 100644 arch/metag/kernel/user_gateway.S
delete mode 100644 arch/metag/kernel/vmlinux.lds.S
delete mode 100644 arch/metag/lib/Makefile
delete mode 100644 arch/metag/lib/ashldi3.S
delete mode 100644 arch/metag/lib/ashrdi3.S
delete mode 100644 arch/metag/lib/checksum.c
delete mode 100644 arch/metag/lib/clear_page.S
delete mode 100644 arch/metag/lib/cmpdi2.S
delete mode 100644 arch/metag/lib/copy_page.S
delete mode 100644 arch/metag/lib/delay.c
delete mode 100644 arch/metag/lib/div64.S
delete mode 100644 arch/metag/lib/divsi3.S
delete mode 100644 arch/metag/lib/ip_fast_csum.S
delete mode 100644 arch/metag/lib/lshrdi3.S
delete mode 100644 arch/metag/lib/memcpy.S
delete mode 100644 arch/metag/lib/memmove.S
delete mode 100644 arch/metag/lib/memset.S
delete mode 100644 arch/metag/lib/modsi3.S
delete mode 100644 arch/metag/lib/muldi3.S
delete mode 100644 arch/metag/lib/ucmpdi2.S
delete mode 100644 arch/metag/lib/usercopy.c
delete mode 100644 arch/metag/mm/Kconfig
delete mode 100644 arch/metag/mm/Makefile
delete mode 100644 arch/metag/mm/cache.c
delete mode 100644 arch/metag/mm/extable.c
delete mode 100644 arch/metag/mm/fault.c
delete mode 100644 arch/metag/mm/highmem.c
delete mode 100644 arch/metag/mm/hugetlbpage.c
delete mode 100644 arch/metag/mm/init.c
delete mode 100644 arch/metag/mm/ioremap.c
delete mode 100644 arch/metag/mm/l2cache.c
delete mode 100644 arch/metag/mm/maccess.c
delete mode 100644 arch/metag/mm/mmu-meta1.c
delete mode 100644 arch/metag/mm/mmu-meta2.c
delete mode 100644 arch/metag/mm/numa.c
delete mode 100644 arch/metag/oprofile/Makefile
delete mode 100644 arch/metag/oprofile/backtrace.c
delete mode 100644 arch/metag/oprofile/backtrace.h
delete mode 100644 arch/metag/oprofile/common.c
delete mode 100644 arch/metag/tbx/Makefile
delete mode 100644 arch/metag/tbx/tbicore.S
delete mode 100644 arch/metag/tbx/tbictx.S
delete mode 100644 arch/metag/tbx/tbictxfpu.S
delete mode 100644 arch/metag/tbx/tbidefr.S
delete mode 100644 arch/metag/tbx/tbidspram.S
delete mode 100644 arch/metag/tbx/tbilogf.S
delete mode 100644 arch/metag/tbx/tbipcx.S
delete mode 100644 arch/metag/tbx/tbiroot.S
delete mode 100644 arch/metag/tbx/tbisoft.S
delete mode 100644 arch/metag/tbx/tbistring.c
delete mode 100644 arch/metag/tbx/tbitimer.S
delete mode 100644 drivers/clocksource/metag_generic.c
delete mode 100644 drivers/gpio/gpio-tz1090-pdc.c
delete mode 100644 drivers/gpio/gpio-tz1090.c
delete mode 100644 drivers/irqchip/irq-metag-ext.c
delete mode 100644 drivers/irqchip/irq-metag.c
delete mode 100644 drivers/pinctrl/pinctrl-tz1090-pdc.c
delete mode 100644 drivers/pinctrl/pinctrl-tz1090.c
delete mode 100644 drivers/tty/metag_da.c
delete mode 100644 include/clocksource/metag_generic.h
delete mode 100644 include/linux/irqchip/metag-ext.h
delete mode 100644 include/linux/irqchip/metag.h


Attachments:
(No filename) (28.38 kB)
signature.asc (849.00 B)
Digital signature
Download all attachments

2018-02-28 12:30:42

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH 07/13] tty: Remove metag DA TTY and console driver

On Wed, Feb 21, 2018 at 11:38:19PM +0000, James Hogan wrote:
> Now that arch/metag/ has been removed, remove the metag DA TTY and
> console driver. It is of no value without the architecture code.
>
> Signed-off-by: James Hogan <[email protected]>
> Cc: Greg Kroah-Hartman <[email protected]>
> Cc: Jiri Slaby <[email protected]>
> Cc: [email protected]
> ---
> drivers/tty/Kconfig | 13 -
> drivers/tty/Makefile | 1 -
> drivers/tty/metag_da.c | 665 -------------------------------------------------
> 3 files changed, 679 deletions(-)
> delete mode 100644 drivers/tty/metag_da.c

Acked-by: Greg Kroah-Hartman <[email protected]>

2018-03-01 14:32:28

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH 10/13] gpio: Drop TZ1090 drivers

On Thu, Feb 22, 2018 at 12:38 AM, James Hogan <[email protected]> wrote:

> Now that arch/metag/ has been removed, along with TZ1090 SoC support,
> remove the TZ1090 GPIO drivers. They are of no value without the
> architecture and SoC platform code.
>
> Signed-off-by: James Hogan <[email protected]>
> Cc: Linus Walleij <[email protected]>
> Cc: [email protected]
> Cc: [email protected]

Patch applied.

Yours,
Linus Walleij

2018-03-01 14:35:37

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH 09/13] pinctrl: Drop TZ1090 drivers

On Thu, Feb 22, 2018 at 12:38 AM, James Hogan <[email protected]> wrote:

> Now that arch/metag/ has been removed, along with TZ1090 SoC support,
> remove the TZ1090 pinctrl drivers. They are of no value without the
> architecture and SoC platform code.
>
> Signed-off-by: James Hogan <[email protected]>
> Cc: Linus Walleij <[email protected]>
> Cc: [email protected]
> Cc: [email protected]

Patch applied.

Yours,
Linus Walleij

2018-03-07 21:25:36

by Arnd Bergmann

[permalink] [raw]
Subject: Re: [PATCH 00/13] Remove metag architecture

On Thu, Feb 22, 2018 at 12:38 AM, James Hogan <[email protected]> wrote:
> These patches remove the metag architecture and tightly dependent
> drivers from the kernel. With the 4.16 kernel the ancient gcc 4.2.4
> based metag toolchain we have been using is hitting compiler bugs, so
> now seems a good time to drop it altogether.
>
> Quoting from patch 1:
>
> The earliest Meta architecture port of Linux I have a record of was an
> import of a Meta port of Linux v2.4.1 in February 2004, which was worked
> on significantly over the next few years by Graham Whaley, Will Newton,
> Matt Fleming, myself and others.
>
> Eventually the port was merged into mainline in v3.9 in March 2013, not
> long after Imagination Technologies bought MIPS Technologies and shifted
> its CPU focus over to the MIPS architecture.
>
> As a result, though the port was maintained for a while, kept on life
> support for a while longer, and useful for testing a few specific
> drivers for which I don't have ready access to the equivalent MIPS
> hardware, it is now essentially dead with no users.
>
> It is also stuck using an out-of-tree toolchain based on GCC 4.2.4 which
> is no longer maintained, now struggles to build modern kernels due to
> toolchain bugs, and doesn't itself build with a modern GCC. The latest
> buildroot port is still using an old uClibc snapshot which is no longer
> served, and the latest uClibc doesn't build with GCC 4.2.4.
>
> So lets call it a day and drop the Meta architecture port from the
> kernel. RIP Meta.

I've pulled it into my asm-generic tree now, which is also part of linux-next,
and followed up with patches removing frv, m32r, score, unicore32
and blackfin. I have not removed the device drivers yet, but I'm working
on that.

Arnd