Thomas Gleixner 8d415ee225 x86/topology: Set x86_max_cores to 1 for CONFIG_SMP=n
Josef reported that the uncore driver trips over with CONFIG_SMP=n because
x86_max_cores is 16 instead of 12.

The reason is, that for SMP=n the extended topology detection is a NOOP and
the cache leaf is used to determine the number of cores. That's wrong in two
aspects:

1) The cache leaf enumerates the maximum addressable number of cores in the
   package, which is obviously not correct

2) UP has no business with topology bits at all.

Make intel_num_cpu_cores() return 1 for CONFIG_SMP=n

Reported-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: kernel-team <Kernel-team@fb.com>
Cc: Kan Liang <kan.liang@intel.com>
Link: http://lkml.kernel.org/r/761b4a2a-0332-7954-f030-c6639f949612@fb.com
2016-05-10 09:28:31 +02:00
..
2016-03-29 10:45:04 +02:00
2016-02-24 08:44:58 +01:00
2015-08-25 09:59:19 +02:00
2015-11-23 09:04:05 +01:00
2015-11-23 09:44:58 +01:00
2016-02-24 08:44:58 +01:00
2016-01-30 11:22:17 +01:00
2015-10-21 11:17:32 +02:00
2015-11-05 13:07:54 +01:00
2016-02-20 00:21:44 -05:00
2016-03-17 15:09:34 -07:00