linux/arch
Dave Hansen 824bab2adc x86/cpu/intel: Introduce macros for Intel family numbers
commit 970442c599 upstream.

Problem:

We have a boatload of open-coded family-6 model numbers.  Half of
them have these model numbers in hex and the other half in
decimal.  This makes grepping for them tons of fun, if you were
to try.

Solution:

Consolidate all the magic numbers.  Put all the definitions in
one header.

The names here are closely derived from the comments describing
the models from arch/x86/events/intel/core.c.  We could easily
make them shorter by doing things like s/SANDYBRIDGE/SNB/, but
they seemed fine even with the longer versions to me.

Do not take any of these names too literally, like "DESKTOP"
or "MOBILE".  These are all colloquial names and not precise
descriptions of everywhere a given model will show up.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Dave Hansen <dave@sr71.net>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Cc: Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Vishwanath Somayaji <vishwanath.somayaji@intel.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: jacob.jun.pan@intel.com
Cc: linux-acpi@vger.kernel.org
Cc: linux-edac@vger.kernel.org
Cc: linux-mmc@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: platform-driver-x86@vger.kernel.org
Link: http://lkml.kernel.org/r/20160603001927.F2A7D828@viggo.jf.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-03-19 18:59:10 +00:00
..
alpha ptrace: Don't allow accessing an undumpable mm 2018-01-01 20:52:11 +00:00
arc ARC: Re-enable MMU upon Machine Check exception 2017-11-26 13:50:29 +00:00
arm ARM: dts: kirkwood: fix pin-muxing of MPP7 on OpenBlocks A7 2018-03-03 15:52:14 +00:00
arm64 arm64: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls 2018-03-03 15:52:23 +00:00
avr32 avr32: fix 'undefined reference to `___copy_from_user' 2016-11-20 01:17:32 +00:00
blackfin ptrace: Don't allow accessing an undumpable mm 2018-01-01 20:52:11 +00:00
c6x C6x: time: Ensure consistency in __init 2015-05-06 11:33:02 +01:00
cris ptrace: Don't allow accessing an undumpable mm 2018-01-01 20:52:11 +00:00
frv mm: larger stack guard gap, between vmas 2017-07-02 17:13:02 +01:00
hexagon hexagon: fix strncpy_from_user() error return 2016-11-20 01:17:27 +00:00
ia64 ptrace: Don't allow accessing an undumpable mm 2018-01-01 20:52:11 +00:00
m32r m32r: add io*_rep helpers 2017-10-12 15:28:12 +01:00
m68k m68k: allow NULL clock for clk_get_rate 2017-11-26 13:50:24 +00:00
metag metag/uaccess: Check access_ok in strncpy_from_user 2017-08-26 02:14:45 +01:00
microblaze microblaze: fix __get_user() 2016-11-20 01:17:30 +00:00
mips MIPS: CPS: Fix MIPS_ISA_LEVEL_RAW fallout 2018-03-03 15:52:35 +00:00
mn10300 mn10300: copy_from_user() should zero on access_ok() failure... 2016-11-20 01:17:28 +00:00
openrisc openrisc: fix the fix of copy_from_user() 2016-11-20 01:17:32 +00:00
parisc parisc: Fix validity check of pointer size argument in new CAS implementation 2018-02-13 18:42:24 +00:00
powerpc powerpc: Don't preempt_disable() in show_cpuinfo() 2018-03-03 15:52:21 +00:00
s390 kernel: make groups_sort calling a responsibility group_info allocators 2018-03-03 15:51:59 +00:00
score score: fix copy_from_user() and friends 2016-11-20 01:17:29 +00:00
sh SolutionEngine771x: add Ether TSU resource 2018-03-03 15:52:20 +00:00
sparc sparc64: Fix return from trap window fill crashes. 2017-10-12 15:28:14 +01:00
tile tile: array underflow in setup_maxnodemem() 2018-01-01 20:51:29 +00:00
um fs/coredump: prevent fsuid=0 dumps into user-controlled directories 2016-05-01 00:06:04 +02:00
unicore32 nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 10:24:18 +01:00
x86 x86/cpu/intel: Introduce macros for Intel family numbers 2018-03-19 18:59:10 +00:00
xtensa xtensa: mm/cache: add missing EXPORT_SYMBOLs 2017-11-11 13:33:12 +00:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig uprobes: Kconfig dependency fix 2014-03-18 16:39:33 -04:00