lkml.org 
[lkml]   [2016]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: Put the num_processors++ code in a more suitable position
On Tue, 6 Sep 2016, Dou Liyang wrote:

> This is a code optimization.
>

Not sure that it's optimization, it's just for correctness.

> If checking the topology package map of apicid and cpu is failure,
> it will stop generating the processor info for that apicid and the
> disabled_cpus will plus one. However, the num-processors has already
> been added one above. That may cause the number of processors incorrect.
>
> Just put the num_processors++ code in the more suitable position.
> it makes sure that the num-processors will not conflict with the
> disabled_cpus.
>
> Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>

Acked-by: David Rientjes <rientjes@google.com>

\
 
 \ /
  Last update: 2016-09-17 09:58    [W:0.041 / U:2.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site