Re: Regression introduced by cf6d445f68974d0b15a14cf6021be38a91f2b5d8

From: Peter Zijlstra
Date: Tue May 10 2016 - 02:51:42 EST


On Mon, May 09, 2016 at 09:48:18PM +0200, Thomas Gleixner wrote:

> So that explains the wreckage you are seing. We have two options to deal with
> this:
>
> 1) Make intel_num_cpu_cores() a NOOP for SMP=n, so x86_max_cores = 1

This I think; because:

>
> 2) Make detect_extended_topology() functional for SMP=n, so the real number of
> cores is detected

UP has no business 'knowing' anything about cores/threads and general
topology stuff.