Re: [PATCH 2/3] PM: EM: Make em_cpu_energy() able to return bigger values

From: Peter Zijlstra
Date: Wed Jul 07 2021 - 06:02:38 EST


On Wed, Jul 07, 2021 at 09:09:08AM +0100, Lukasz Luba wrote:
> For now we would live with this simple code which improves
> all recent 64bit platforms and is easy to take it into Android
> common kernel. The next step would be more scattered across
> other subsystems, so harder to backport to Android 5.4 and others.

Ah, you *do* only care about 64bit :-) So one option is to only increase
precision for 64BIT builds, just like we do for scale_load() and
friends.