Hi all! This patch exports cpuidle_register_governor and cpuidle_unregister_governor with EXPORT_SYMBOL_GPL (as the other cpuidle_(un)register_* ). Reasoning: allow runtime loading of a cpuidle governor (mainly for development for now). Usually we don't need this as we're using built-ins for the governors - but during development it is really handy to load and unload a cpuidle governor (together with the cpuidle_sysfs_switch). Comments ? Best, Jan-Simon
>From a21a054fa64f898576ee62fced30508e0affe243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Simon=20M=C3=B6ller?= <jansimon.moeller@xxxxxx> Date: Mon, 12 Dec 2011 14:40:56 +0100 Subject: [PATCH] Export cpuidle_register_governor and cpuidle_unregister_governor with EXPORT_SYMBOL_GPL (as the other cpuidle_(un)register_* ). Reasoning: allow runtime loading of a cpuidle governor (mainly for development for now). --- drivers/cpuidle/governor.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/cpuidle/governor.c b/drivers/cpuidle/governor.c index ea2f8e7..552f5a4 100644 --- a/drivers/cpuidle/governor.c +++ b/drivers/cpuidle/governor.c @@ -97,6 +97,8 @@ int cpuidle_register_governor(struct cpuidle_governor *gov) return ret; } +EXPORT_SYMBOL_GPL(cpuidle_register_governor); + /** * cpuidle_replace_governor - find a replacement governor * @exclude_rating: the rating that will be skipped while looking for @@ -139,3 +141,4 @@ void cpuidle_unregister_governor(struct cpuidle_governor *gov) mutex_unlock(&cpuidle_lock); } +EXPORT_SYMBOL_GPL(cpuidle_unregister_governor); -- 1.7.7
_______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/linux-pm