linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jan-Simon Möller" <dl9pf@gmx.de>
To: linux-pm@lists.linux-foundation.org
Subject: [RFC]: [PATCH] Export cpuidle_(un)register_governor
Date: Tue, 20 Dec 2011 17:15:04 +0100	[thread overview]
Message-ID: <1c6776e3-0f69-43f9-a19f-298e714232d3@email.android.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 551 bytes --]

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 developments it is really handy to load and unload a cpuidle governor
(together with the cpuidle_sysfs_switch).

Comments ?

Best,
Jan-Simon
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

[-- Attachment #1.2: Type: text/html, Size: 655 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Export-cpuidle_register_governor-and-cpuidle_unregis.patch --]
[-- Type: text/x-patch; name="0001-Export-cpuidle_register_governor-and-cpuidle_unregis.patch", Size: 1165 bytes --]

From a21a054fa64f898576ee62fced30508e0affe243 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan-Simon=20M=C3=B6ller?= <jansimon.moeller@gmx.de>
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

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2011-12-20 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-20 16:15 Jan-Simon Möller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-01-04 17:48 [RFC]: [PATCH] Export cpuidle_(un)register_governor Jan-Simon Möller
2012-01-04 17:51 ` Arjan van de Ven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1c6776e3-0f69-43f9-a19f-298e714232d3@email.android.com \
    --to=dl9pf@gmx.de \
    --cc=linux-pm@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).