diff mbox series

sched/idle: Export cpu_idle_poll_ctrl() symbol

Message ID 1637831933-7449-1-git-send-email-quic_mkshah@quicinc.com (mailing list archive)
State Not Applicable, archived
Headers show
Series sched/idle: Export cpu_idle_poll_ctrl() symbol | expand

Commit Message

Maulik Shah Nov. 25, 2021, 9:18 a.m. UTC
Export cpu_idle_poll_ctrl() so that module drivers can use same.

Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
---
 kernel/sched/idle.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Christoph Hellwig Nov. 26, 2021, 9:15 a.m. UTC | #1
On Thu, Nov 25, 2021 at 02:48:53PM +0530, Maulik Shah wrote:
> Export cpu_idle_poll_ctrl() so that module drivers can use same.

Independ of the fact that this looks like a module that should not be
exported at all:  please always post exports with the actual module
using them, otherwise they are unreviewable and unacceptable.
diff mbox series

Patch

diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c
index d17b0a5..7fbc07f 100644
--- a/kernel/sched/idle.c
+++ b/kernel/sched/idle.c
@@ -33,6 +33,7 @@  void cpu_idle_poll_ctrl(bool enable)
 		WARN_ON_ONCE(cpu_idle_force_poll < 0);
 	}
 }
+EXPORT_SYMBOL(cpu_idle_poll_ctrl);
 
 #ifdef CONFIG_GENERIC_IDLE_POLL_SETUP
 static int __init cpu_idle_poll_setup(char *__unused)