mbox series

[v2,0/2] thermal: core: Sanitize polling delay values

Message ID 2746673.mvXUDI8C0e@rjwysocki.net
Headers show
Series thermal: core: Sanitize polling delay values | expand

Message

Rafael J. Wysocki July 5, 2024, 7:43 p.m. UTC
Hi Everyone,

This is a v2 of

https://lore.kernel.org/linux-pm/4585590.LvFx2qVVIh@rjwysocki.net/

which is being sent because the second patch in the v2 was incorrect.

These 2 patches deal with issues that may arise if the polling delay value used
for passive polling is at odds with the polling delay values used otherwise.

The first patch simply eliminates the need to worry about possible negative
polling delay values by changing the data type used for representing them
to unsigend int.

The other patch adds a sanity check to ensure that "passive" polling will not
be less frequent than "regular" polling.

Thanks!