perf/x86: Get rid of x86_pmu::event_attrs
authorJiri Olsa <jolsa@kernel.org>
Sun, 12 May 2019 15:55:12 +0000 (17:55 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Jun 2019 09:58:22 +0000 (11:58 +0200)
Nobody is using that.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190512155518.21468-4-jolsa@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/core.c
arch/x86/events/perf_event.h

index f315425d8468f473bf11e95c6039b59ac6b318a4..0c5a2c783374d6275756694f9194652d1cc3638f 100644 (file)
@@ -1850,9 +1850,6 @@ static int __init init_hw_perf_events(void)
                        x86_pmu_caps_group.attrs = tmp;
        }
 
-       if (x86_pmu.event_attrs)
-               x86_pmu_events_group.attrs = x86_pmu.event_attrs;
-
        if (!x86_pmu.events_sysfs_show)
                x86_pmu_events_group.attrs = &empty_attrs;
        else
index a6ac2f4f76fc97ef2409e31fb3f8a3ac54a35bd4..1599008f156ab410ada98cad298fd08a58771046 100644 (file)
@@ -631,7 +631,6 @@ struct x86_pmu {
        int             attr_rdpmc_broken;
        int             attr_rdpmc;
        struct attribute **format_attrs;
-       struct attribute **event_attrs;
        struct attribute **caps_attrs;
 
        ssize_t         (*events_sysfs_show)(char *page, u64 config);