2021-11-25 09:21:24

by Maulik Shah (mkshah)

[permalink] [raw]
Subject: [PATCH] sched/idle: Export cpu_idle_poll_ctrl() symbol

Export cpu_idle_poll_ctrl() so that module drivers can use same.

Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Vincent Guittot <[email protected]>
Signed-off-by: Maulik Shah <[email protected]>
---
kernel/sched/idle.c | 1 +
1 file changed, 1 insertion(+)

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)
--
2.7.4



2021-11-26 09:24:53

by Christoph Hellwig

[permalink] [raw]
Subject: Re: [PATCH] sched/idle: Export cpu_idle_poll_ctrl() symbol

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.