#1918 Fixed check for 1GB huge pages on ARM Linux.
This commit is contained in:
parent
5ac908c027
commit
51690ebad6
3 changed files with 11 additions and 22 deletions
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <array>
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <thread>
|
||||
|
||||
|
||||
|
@ -66,6 +67,8 @@ xmrig::BasicCpuInfo::BasicCpuInfo() :
|
|||
if (!name.isNull()) {
|
||||
strncpy(m_brand, name, sizeof(m_brand) - 1);
|
||||
}
|
||||
|
||||
m_flags.set(FLAG_PDPE1GB, std::ifstream("/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages").good());
|
||||
# endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue