Files
kernel_xiaomi_raphael/kernel
Chris Wilson 1cd492f839 locking/lockdep: Fix overflow in presentation of average lock-time
[ Upstream commit a7ef9b28aa8d72a1656fa6f0a01bbd1493886317 ]

Though the number of lock-acquisitions is tracked as unsigned long, this
is passed as the divisor to div_s64() which interprets it as a s32,
giving nonsense values with more than 2 billion acquisitons. E.g.

  acquisitions   holdtime-min   holdtime-max holdtime-total   holdtime-avg
  -------------------------------------------------------------------------
    2350439395           0.07         353.38   649647067.36          0.-32

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20200725185110.11588-1-chris@chris-wilson.co.uk
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-03 11:22:27 +02:00
..
2020-08-05 10:06:51 +02:00
2019-12-01 09:14:03 +01:00
2018-08-03 07:50:38 +02:00
2020-04-02 16:34:21 +02:00
2018-08-03 07:50:22 +02:00
2020-04-02 16:34:20 +02:00
2017-08-21 12:47:31 -07:00
2020-04-24 08:00:38 +02:00
2020-01-09 10:17:53 +01:00
2018-05-09 09:51:50 +02:00
2020-05-20 08:16:58 +02:00