diff options
author | Eddie James <eajames@linux.ibm.com> | 2021-04-29 10:13:36 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2021-05-10 06:27:33 -0700 |
commit | 5216dff22dc2bbbbe6f00335f9fd2879670e753b (patch) | |
tree | 63c697a13879a0afdba14e6adb937bd90aef82bd /tools/perf/scripts/python/stackcollapse.py | |
parent | 726c945ab2ebd104631b6105ab455a5bc604a3f1 (diff) |
hwmon: (occ) Fix poll rate limiting
The poll rate limiter time was initialized at zero. This breaks the
comparison in time_after if jiffies is large. Switch to storing the
next update time rather than the previous time, and initialize the
time when the device is probed.
Fixes: c10e753d43eb ("hwmon (occ): Add sensor types and versions")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210429151336.18980-1-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions