[PATCH 6.11 100/817] thermal: core: Rearrange PM notification code