lkml.org 
[lkml]   [2022]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH RFC] x86/apic: skip cpu slot reservation logic on boot in case of NR_CPUS == 1
From
On 9/2/22 09:42, Yury Norov wrote:
> This is RFC because I'm not sure that this is not a false positive from
> smatch. If NR_CPUS is 1, and the condition is always true, it's simply
> optimized out by a compiler, and nothing wrong happens, except maybe a
> couple of checks on boot.

I think it's a reasonable warning, but it's also not something we need
to hack around. We can surely only land in here with
boot_cpu_detected==true if NR_CPUS==1, so the rest of the expression is
moot.

I don't think it's worth adding the #ifdef.

\
 
 \ /
  Last update: 2022-09-02 19:16    [W:1.040 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site