summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2020-09-18 19:55:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-01 12:47:09 +0100
commit70ed5fdd90ffd91385cd5bba1ab4626c00a2feb3 (patch)
tree4d1ec00b6605559b58fc130124e0fb3d877cd8d5 /tools/perf/scripts/python/export-to-postgresql.py
parent43a6a863fa21e9e8473fe386afa40ca3f0fb802f (diff)
downloadlinux-stable-70ed5fdd90ffd91385cd5bba1ab4626c00a2feb3.tar.gz
linux-stable-70ed5fdd90ffd91385cd5bba1ab4626c00a2feb3.tar.bz2
linux-stable-70ed5fdd90ffd91385cd5bba1ab4626c00a2feb3.zip
PM: runtime: Fix timer_expires data type on 32-bit arches
commit 6b61d49a55796dbbc479eeb4465e59fd656c719c upstream. Commit 8234f6734c5d ("PM-runtime: Switch autosuspend over to using hrtimers") switched PM runtime autosuspend to use hrtimers and all related time accounting in ns, but missed to update the timer_expires data type in struct dev_pm_info to u64. This causes the timer_expires value to be truncated on 32-bit architectures when assignment is done from u64 values: rpm_suspend() |- dev->power.timer_expires = expires; Fix it by changing the timer_expires type to u64. Fixes: 8234f6734c5d ("PM-runtime: Switch autosuspend over to using hrtimers") Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: Vincent Guittot <vincent.guittot@linaro.org> Cc: 5.0+ <stable@vger.kernel.org> # 5.0+ [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions