summaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-03-29 20:15:19 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-04-07 19:26:44 +0200
commit2ab80d46fead0309d7f190d8023c8d64b2ffcbd5 (patch)
tree48fec8d2b32f9776a172b9a4e245ba44651b798a /mm/oom_kill.c
parent4c81cb7e64436a729cf20cdddaf18a9b4a638430 (diff)
downloadlinux-2ab80d46fead0309d7f190d8023c8d64b2ffcbd5.tar.bz2
cpuidle: Use s64 as exit_latency_ns and target_residency_ns data type
Subsequent changes will cause the exit_latency_ns and target_residency_ns fields in struct cpuidle_state to be used in computations in which data type conversions to u64 may turn a negative number close to zero into a verly large positive number leading to incorrect results. In preparation for that, change the data type of the fields mentioned above to s64, but ensure that they will not be negative themselves. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions