summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/percpu.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-07-25 19:51:10 +0100
committerIngo Molnar <mingo@kernel.org>2020-07-25 21:47:42 +0200
commita7ef9b28aa8d72a1656fa6f0a01bbd1493886317 (patch)
treedc43e39c24124df11dc97333de748b4c895ca91f /arch/arm/include/asm/percpu.h
parent23ee3e4e5bd27bdbc0f1785eef7209ce872794c7 (diff)
downloadlinux-stable-a7ef9b28aa8d72a1656fa6f0a01bbd1493886317.tar.gz
linux-stable-a7ef9b28aa8d72a1656fa6f0a01bbd1493886317.tar.bz2
linux-stable-a7ef9b28aa8d72a1656fa6f0a01bbd1493886317.zip
locking/lockdep: Fix overflow in presentation of average lock-time
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
Diffstat (limited to 'arch/arm/include/asm/percpu.h')
0 files changed, 0 insertions, 0 deletions