ANDROID: drivers base/arch_topology: allow inlining cpu-invariant accounting support
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Fri, 21 Jul 2017 10:40:58 +0000 (11:40 +0100)
committerChris Redpath <chris.redpath@arm.com>
Thu, 14 Dec 2017 21:41:04 +0000 (21:41 +0000)
commit9c20a9dd2715d8c785b27798885e88a7a9b4ee53
tree43b6f42b4185749a03d9f61088dabb231bddd0d5
parentd283e80e93f47fd67c89599d2ebf6ba264c37586
ANDROID: drivers base/arch_topology: allow inlining cpu-invariant accounting support

Allow inlining of topology_get_cpu_scale() into the task
scheduler fast path (e.g. __update_load_avg_se()) by coding it as a
static inline function in the arch topology header file.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Change-Id: I878f33922905fb778ad0b3ee86126e62b5a7d834
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
drivers/base/arch_topology.c
include/linux/arch_topology.h