Re: [PATCH] psi:fix divide by zero in psi_update_stats

From: Peter Zijlstra
Date: Fri Nov 08 2019 - 04:31:45 EST


On Fri, Nov 08, 2019 at 03:33:24PM +0800, tim wrote:
> In psi_update_stats, it is possible that period has value like
> 0xXXXXXXXX00000000 where the lower 32 bit is 0, then it calls div_u64 which

How can this happen? Is that a valid case or should we be avoiding that?