]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Drop a bunch of metag references
authorJames Hogan <jhogan@kernel.org>
Tue, 24 Oct 2017 15:52:32 +0000 (16:52 +0100)
committerJames Hogan <jhogan@kernel.org>
Fri, 23 Feb 2018 14:29:59 +0000 (14:29 +0000)
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_SPECIFIC_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 <jhogan@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: linux-mm@kvack.org
Cc: linux-metag@vger.kernel.org
include/linux/cpuhotplug.h
include/linux/mm.h
include/trace/events/mmflags.h
include/uapi/linux/elf.h
lib/Kconfig.debug
mm/Kconfig
scripts/checkstack.pl
scripts/recordmcount.c
tools/perf/perf-sys.h

index 5172ad0daa7cc475bed3939038e689810dbfca4f..c7a950681f3a44d5e952d23de2ad153476a11fc3 100644 (file)
@@ -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,
index ad06d42adb1a2602094f894b69ed182cbac978fe..ccac10682ce58f841c63dca476824423468bfb22 100644 (file)
@@ -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)
index dbe1bb058c0904b0c140e025d18a39237324702d..a81cffb76d890185f09ddcf08496a7dd432233d6 100644 (file)
@@ -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"      }
index 3bf73fb58045da56562c5c790f80aed860827672..e2535d6dcec79e568b55340535b00378305bba24 100644 (file)
@@ -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 */
index 6088408ef26c5471146ee0c6a149f4ba1086d015..d1c523e408e9371e89ce6df928cb4b0f69f338ba 100644 (file)
@@ -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
index c782e8fb7235ca0932c078beffe02b633c25449a..abefa573bcd860fe9323f602e6904733d3cc156d 100644 (file)
@@ -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.
 
index cb993801e4b238a858dfc9b490c9242686a3e226..eeb9ac8dbcfb4fb706969c21d97fff4e6af7fc8b 100755 (executable)
@@ -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;
index 16e086dcc56762dd7bc8e6ccd78324e43320d829..8c9691c3329e028ec47428a2ae4c82b785cb6da8 100644 (file)
 #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;
index 36673f98d66baa9958c07ef64a8a5e39ae3d90df..3eb7a39169f63dc7823886a5a53ac7713cd68ff5 100644 (file)
 #define CPUINFO_PROC   {"Processor"}
 #endif
 
-#ifdef __metag__
-#define CPUINFO_PROC   {"CPU"}
-#endif
-
 #ifdef __xtensa__
 #define CPUINFO_PROC   {"core ID"}
 #endif