ANDROID: GKI: sched: put back the cpu_capacity_inverted variable

In commit 8517d73992 ("sched/fair: Remove capacity inversion
detection"), the cpu_capacity_inverted was removed from struct rq.  Add
it back to preserve the abi and comment that it's not valid anymore.

Note, due to external modules using internal structures like this, it's
going to be "tricky" for them to even notice this has changed.  Their
build systems are going to have "fun" with this...

Bug: 161946584
Fixes: 8517d73992 ("sched/fair: Remove capacity inversion detection")
Change-Id: I2b41b3ba2eb23fbb33ff872915a5e481640d0cc4
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2023-10-12 15:05:43 +00:00
parent d78a231453
commit 1d14a4d9ce

View File

@ -1061,6 +1061,15 @@ struct rq {
unsigned long cpu_capacity;
unsigned long cpu_capacity_orig;
/*
* ANDROID ONLY:
* cpu_capacity_inverted is preserved here to keep the same ABI,
* but it is NOT a field that is used anymore. Be aware of this
* if when attempting to access it in out-of-tree code. It was
* removed in commit 8517d739923e ("sched/fair: Remove capacity
* inversion detection") in the 6.1.47 upstream release.
*/
unsigned long cpu_capacity_inverted;
struct balance_callback *balance_callback;