Johannes Weiner c3466952ca psi: Fix a division error in psi poll()
The psi window size is a u64 an can be up to 10 seconds right now,
which exceeds the lower 32 bits of the variable. We currently use
div_u64 for it, which is meant only for 32-bit divisors. The result is
garbage pressure sampling values and even potential div0 crashes.

Use div64_u64.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Cc: Jingfeng Xie <xiejingfeng@linux.alibaba.com>
Link: https://lkml.kernel.org/r/20191203183524.41378-3-hannes@cmpxchg.org
2019-12-17 13:32:48 +01:00
..
2019-09-15 21:37:13 +02:00
2019-11-20 14:16:34 +01:00
2019-11-27 11:42:01 -08:00
2019-07-08 18:55:42 -07:00
2019-07-08 18:55:42 -07:00
2019-07-25 08:36:29 -07:00
2019-11-30 14:12:13 -08:00
2019-11-20 09:40:38 +01:00
2019-12-04 19:44:14 -08:00
2019-05-24 20:16:01 +02:00
2019-09-20 11:19:48 -07:00
2019-12-02 17:35:04 -08:00
2019-12-05 12:27:16 -08:00
2019-07-08 19:36:47 -07:00
2019-07-08 19:36:47 -07:00