mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 15:56:32 +00:00
[BOLT] Fix kernel version check for THP in hugify (#129380)
BOLT --hugify does not work in kernel 6.x. Co-authored-by: rfwang07 <wangrufeng5@huawei.com>
This commit is contained in:
parent
9ee4883c61
commit
fcb65ad2a2
@ -85,7 +85,8 @@ static bool hasPagecacheTHPSupport() {
|
||||
KernelVersionTy KernelVersion;
|
||||
|
||||
getKernelVersion((uint32_t *)&KernelVersion);
|
||||
if (KernelVersion.major >= 5 && KernelVersion.minor >= 10)
|
||||
if (KernelVersion.major >= 6 ||
|
||||
(KernelVersion.major == 5 && KernelVersion.minor >= 10))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user