| 9 | #include "SMCProcessor.hpp" |
| 10 | |
| 11 | SMC_RESULT TempPackage::readAccess() { |
| 12 | uint16_t *ptr = reinterpret_cast<uint16_t *>(data); |
| 13 | IOSimpleLockLock(cp->counterLock); |
| 14 | *ptr = VirtualSMCAPI::encodeIntSp(type, cp->counters.tjmax[package] - cp->counters.thermalStatusPackage[package]); |
| 15 | cp->quickReschedule(); |
| 16 | IOSimpleLockUnlock(cp->counterLock); |
| 17 | return SmcSuccess; |
| 18 | } |
| 19 | |
| 20 | SMC_RESULT TempCore::readAccess() { |
| 21 | uint16_t *ptr = reinterpret_cast<uint16_t *>(data); |
nothing calls this directly
no test coverage detected