Skip to content

Commit c7d87d7

Browse files
Venkatesh Pallipadilenb
authored andcommitted
x86 allow modules to register idle notifiers
needed if the i7300_idle driver is to be modular. Signed-off-by: Venkatesh Pallipadi <[email protected]> Acked-by: Ingo Molnar <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent 3fa8749 commit c7d87d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/x86/kernel/process_64.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ void idle_notifier_register(struct notifier_block *n)
6262
{
6363
atomic_notifier_chain_register(&idle_notifier, n);
6464
}
65+
EXPORT_SYMBOL_GPL(idle_notifier_register);
66+
67+
void idle_notifier_unregister(struct notifier_block *n)
68+
{
69+
atomic_notifier_chain_unregister(&idle_notifier, n);
70+
}
71+
EXPORT_SYMBOL_GPL(idle_notifier_unregister);
6572

6673
void enter_idle(void)
6774
{

0 commit comments

Comments
 (0)