drivers base/arch_topology: allow inlining cpu-invariant accounting support
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Tue, 26 Sep 2017 16:41:11 +0000 (17:41 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Oct 2017 00:37:54 +0000 (02:37 +0200)
commit8216f588b52b61ce36fc0080218e4730435e58b7
treea65d5176435ac175bcf4c6fb29995e5fe3b8cb24
parent0e27c567d1673137b06aa96bb7aef635fb657dee
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.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/arch_topology.c
include/linux/arch_topology.h