Re: [PATCH 2/2] tools/power/turbostat: Fix division by zero when TDP calculation fails

From: Len Brown
Date: Tue Dec 02 2025 - 11:22:49 EST


On Tue, Dec 2, 2025 at 4:09 AM Ehlert, Emily <ehemily@xxxxxxxxx> wrote:

> - if (msr_value == 0)
> + if (msr_value == 0) {

Thanks! (and sorry for that careless mistake!)

> Log output of turbostat with this patch applied:
...
> RAPL_PKG_ENERGY MSR(0x611) == ZERO: disabling all RAPL MSRs

Looks good -- thanks!

-Len