Re: [tip: x86/urgent] x86/cpu: Provide default cache line size if not enumerated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/30/24 08:05, Jörn Heusipp wrote:
>>
>> +        /* Provide a sane default if not enumerated: */
>> +        if (!c->x86_clflush_size)
>> +            c->x86_clflush_size = 32;
>>       } else {
>>           cpuid(0x80000008, &eax, &ebx, &ecx, &edx);
>>
> 
> That honestly looks like a mis-merge to me. This is not what I did test.
> x86_clflush_size needs to get set in the top-level else branch in which
> it is not already set. commit 95bfb35269b2e85cff0dd2c957b2d42ebf95ae5f
> had switched the if branches around.

You're totally right.  Thank you for catching that.

I think a variable removal flipped that code around and it confused me
when I did the rebase.  It should be fixed up now.

Again, thanks a bunch for the report, the testing, and catching my
screwup quickly!




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux