Add driver for Intel Processor Thermal Device (B0D4) found on Skylake and later processors.
This device exposes RAPL power limits (PL1/PL2) and TDP information via sysctl.
The driver reads MSR_RAPL_POWER_UNIT to determine the correct power unit scaling factoor, with fallback to 1/8 W if MSR read fails.
Sysctls provided:
dev.intelthermal.0.pl1 - Long-term power limit (mW) dev.intelthermal.0.pl2 - Short-term power limit (mW) dev.intelthermal.0.tdp - Thermal Design Power (mW) dev.intelthermal.0.pl1_enabled - PL1 enabled flag dev.intelthermal.0.pl2_enabled - PL2 enabled flag dev.intelthermal.0.locked - Firmware lock status dev.intelthermal.0.access_denied - MMIO access status dev.intelthermal.0.power_unit_div - Power unit divisor dev.intelthermal.0.power_unit_shift - Power unit shift
Note: Later generations may have different MMIO layouts and would need per-generation validation. I used the gen 10th documentation (that match the hardware i used)