thermal: avoid division by zero in power allocator
During boot I get a div by zero Oops regression starting in v4.3-rc3. Signed-off-by: NAndrea Arcangeli <aarcange@redhat.com> Reviewed-by: NJavi Merino <javi.merino@arm.com> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录