|
1 | | -// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. |
| 1 | +// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. |
2 | 2 | // |
3 | 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | 4 |
|
@@ -235,11 +235,11 @@ void DeviceCpu::setInfoFromLscpu(const QMap<QString, QString> &mapInfo) |
235 | 235 | setAttribute(mapInfo, "CPU MHz", m_CurFrequency); |
236 | 236 | setAttribute(mapInfo, "model", m_Model); |
237 | 237 | setAttribute(mapInfo, "stepping", m_Step); |
238 | | - setAttribute(mapInfo, "L1d cache", m_CacheL1Data); |
239 | | - setAttribute(mapInfo, "L1i cache", m_CacheL1Order); |
240 | | - setAttribute(mapInfo, "L2 cache", m_CacheL2); |
241 | | - setAttribute(mapInfo, "L3 cache", m_CacheL3); |
242 | | - setAttribute(mapInfo, "L4 cache", m_CacheL4); |
| 238 | + // setAttribute(mapInfo, "L1d cache", m_CacheL1Data); |
| 239 | + // setAttribute(mapInfo, "L1i cache", m_CacheL1Order); |
| 240 | + // setAttribute(mapInfo, "L2 cache", m_CacheL2); |
| 241 | + // setAttribute(mapInfo, "L3 cache", m_CacheL3); |
| 242 | + // setAttribute(mapInfo, "L4 cache", m_CacheL4); |
243 | 243 | setAttribute(mapInfo, "flags", m_Flags); |
244 | 244 | setAttribute(mapInfo, "Virtualization", m_HardwareVirtual); |
245 | 245 |
|
@@ -351,11 +351,11 @@ TomlFixMethod DeviceCpu::setInfoFromTomlOneByOne(const QMap<QString, QString> &m |
351 | 351 | setTomlAttribute(mapInfo, "Virtualization", m_HardwareVirtual); |
352 | 352 | setTomlAttribute(mapInfo, "Flags", m_Flags); |
353 | 353 | setTomlAttribute(mapInfo, "Extensions", m_Extensions); |
354 | | - setTomlAttribute(mapInfo, "L4 Cache", m_CacheL4); |
355 | | - setTomlAttribute(mapInfo, "L3 Cache", m_CacheL3); |
356 | | - setTomlAttribute(mapInfo, "L2 Cache", m_CacheL2); |
357 | | - setTomlAttribute(mapInfo, "L1i Cache", m_CacheL1Order); |
358 | | - setTomlAttribute(mapInfo, "L1d Cache", m_CacheL1Data); |
| 354 | + // setTomlAttribute(mapInfo, "L4 Cache", m_CacheL4); |
| 355 | + // setTomlAttribute(mapInfo, "L3 Cache", m_CacheL3); |
| 356 | + // setTomlAttribute(mapInfo, "L2 Cache", m_CacheL2); |
| 357 | + // setTomlAttribute(mapInfo, "L1i Cache", m_CacheL1Order); |
| 358 | + // setTomlAttribute(mapInfo, "L1d Cache", m_CacheL1Data); |
359 | 359 | ret = setTomlAttribute(mapInfo, "Stepping", m_Step); |
360 | 360 | //3. 获取设备的其它信息 |
361 | 361 | getOtherMapInfo(mapInfo); |
@@ -402,11 +402,11 @@ void DeviceCpu::loadOtherDeviceInfo() |
402 | 402 | addOtherDeviceInfo("Virtualization", m_HardwareVirtual); |
403 | 403 | addOtherDeviceInfo("Flags", m_Flags); |
404 | 404 | addOtherDeviceInfo("Extensions", m_Extensions); |
405 | | - addOtherDeviceInfo("L4 Cache", m_CacheL4); |
406 | | - addOtherDeviceInfo("L3 Cache", m_CacheL3); |
407 | | - addOtherDeviceInfo("L2 Cache", m_CacheL2); |
408 | | - addOtherDeviceInfo("L1i Cache", m_CacheL1Order); |
409 | | - addOtherDeviceInfo("L1d Cache", m_CacheL1Data); |
| 405 | + // addOtherDeviceInfo("L4 Cache", m_CacheL4); |
| 406 | + // addOtherDeviceInfo("L3 Cache", m_CacheL3); |
| 407 | + // addOtherDeviceInfo("L2 Cache", m_CacheL2); |
| 408 | + // addOtherDeviceInfo("L1i Cache", m_CacheL1Order); |
| 409 | + // addOtherDeviceInfo("L1d Cache", m_CacheL1Data); |
410 | 410 | addOtherDeviceInfo("Stepping", m_Step); |
411 | 411 |
|
412 | 412 | // 将QMap<QString, QString>内容转存为QList<QPair<QString, QString>> |
|
0 commit comments