• Dave Hansen's avatar
    perf/x86/intel: Use Intel family macros for core perf events · ef5f9f47
    Dave Hansen authored
    Use the new model number macros instead of spelling things out
    in the comments.
    Note that this is missing a Nehalem model that is mentioned in
    intel_idle which is fixed up in a later patch.
    The resulting binary (arch/x86/events/intel/core.o) is exactly
    the same with and without this patch modulo some harmless changes
    to restoring %esi in the return path of functions, even those
    untouched by this patch.
    Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Dave Hansen <dave@sr71.net>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Kan Liang <kan.liang@intel.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vince Weaver <vincent.weaver@maine.edu>
    Cc: jacob.jun.pan@intel.com
    Link: http://lkml.kernel.org/r/20160603001929.C5F1C079@viggo.jf.intel.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
core.c 113 KB