2 * (C) 2001, 2002, 2003, 2004 Rusty Russell
4 * This code is licenced under the GPL.
6 #include <linux/proc_fs.h>
8 #include <linux/init.h>
9 #include <linux/notifier.h>
10 #include <linux/sched.h>
11 #include <linux/unistd.h>
12 #include <linux/cpu.h>
13 #include <linux/oom.h>
14 #include <linux/rcupdate.h>
15 #include <linux/export.h>
16 #include <linux/bug.h>
17 #include <linux/kthread.h>
18 #include <linux/stop_machine.h>
19 #include <linux/mutex.h>
20 #include <linux/gfp.h>
21 #include <linux/suspend.h>
23 #if defined(CONFIG_ARM_EXYNOS_MP_CPUFREQ) || defined(CONFIG_ARM_EXYNOS_SMP_CPUFREQ)
24 #include <mach/cpufreq.h>
30 /* Serializes the updates to cpu_online_mask, cpu_present_mask */
31 static DEFINE_MUTEX(cpu_add_remove_lock
);
34 * The following two APIs (cpu_maps_update_begin/done) must be used when
35 * attempting to serialize the updates to cpu_online_mask & cpu_present_mask.
36 * The APIs cpu_notifier_register_begin/done() must be used to protect CPU
37 * hotplug callback (un)registration performed using __register_cpu_notifier()
38 * or __unregister_cpu_notifier().
40 void cpu_maps_update_begin(void)
42 mutex_lock(&cpu_add_remove_lock
);
44 EXPORT_SYMBOL(cpu_notifier_register_begin
);
46 void cpu_maps_update_done(void)
48 mutex_unlock(&cpu_add_remove_lock
);
50 EXPORT_SYMBOL(cpu_notifier_register_done
);
52 static RAW_NOTIFIER_HEAD(cpu_chain
);
54 /* If set, cpu_up and cpu_down will return -EBUSY and do nothing.
55 * Should always be manipulated under cpu_add_remove_lock
57 static int cpu_hotplug_disabled
;
59 #ifdef CONFIG_HOTPLUG_CPU
62 struct task_struct
*active_writer
;
63 struct mutex lock
; /* Synchronizes accesses to refcount, */
65 * Also blocks the new readers during
66 * an ongoing cpu hotplug operation.
70 .active_writer
= NULL
,
71 .lock
= __MUTEX_INITIALIZER(cpu_hotplug
.lock
),
75 void get_online_cpus(void)
78 if (cpu_hotplug
.active_writer
== current
)
80 mutex_lock(&cpu_hotplug
.lock
);
81 cpu_hotplug
.refcount
++;
82 mutex_unlock(&cpu_hotplug
.lock
);
85 EXPORT_SYMBOL_GPL(get_online_cpus
);
87 void put_online_cpus(void)
89 if (cpu_hotplug
.active_writer
== current
)
91 mutex_lock(&cpu_hotplug
.lock
);
93 if (WARN_ON(!cpu_hotplug
.refcount
))
94 cpu_hotplug
.refcount
++; /* try to fix things up */
96 if (!--cpu_hotplug
.refcount
&& unlikely(cpu_hotplug
.active_writer
))
97 wake_up_process(cpu_hotplug
.active_writer
);
98 mutex_unlock(&cpu_hotplug
.lock
);
101 EXPORT_SYMBOL_GPL(put_online_cpus
);
104 * This ensures that the hotplug operation can begin only when the
105 * refcount goes to zero.
107 * Note that during a cpu-hotplug operation, the new readers, if any,
108 * will be blocked by the cpu_hotplug.lock
110 * Since cpu_hotplug_begin() is always called after invoking
111 * cpu_maps_update_begin(), we can be sure that only one writer is active.
113 * Note that theoretically, there is a possibility of a livelock:
114 * - Refcount goes to zero, last reader wakes up the sleeping
116 * - Last reader unlocks the cpu_hotplug.lock.
117 * - A new reader arrives at this moment, bumps up the refcount.
118 * - The writer acquires the cpu_hotplug.lock finds the refcount
119 * non zero and goes to sleep again.
121 * However, this is very difficult to achieve in practice since
122 * get_online_cpus() not an api which is called all that often.
125 static void cpu_hotplug_begin(void)
127 cpu_hotplug
.active_writer
= current
;
130 mutex_lock(&cpu_hotplug
.lock
);
131 if (likely(!cpu_hotplug
.refcount
))
133 __set_current_state(TASK_UNINTERRUPTIBLE
);
134 mutex_unlock(&cpu_hotplug
.lock
);
139 static void cpu_hotplug_done(void)
141 cpu_hotplug
.active_writer
= NULL
;
142 mutex_unlock(&cpu_hotplug
.lock
);
146 * Wait for currently running CPU hotplug operations to complete (if any) and
147 * disable future CPU hotplug (from sysfs). The 'cpu_add_remove_lock' protects
148 * the 'cpu_hotplug_disabled' flag. The same lock is also acquired by the
149 * hotplug path before performing hotplug operations. So acquiring that lock
150 * guarantees mutual exclusion from any currently running hotplug operations.
152 void cpu_hotplug_disable(void)
154 cpu_maps_update_begin();
155 cpu_hotplug_disabled
= 1;
156 cpu_maps_update_done();
159 void cpu_hotplug_enable(void)
161 cpu_maps_update_begin();
162 cpu_hotplug_disabled
= 0;
163 cpu_maps_update_done();
166 #else /* #if CONFIG_HOTPLUG_CPU */
167 static void cpu_hotplug_begin(void) {}
168 static void cpu_hotplug_done(void) {}
169 #endif /* #else #if CONFIG_HOTPLUG_CPU */
171 /* Need to know about CPUs going up/down? */
172 int __ref
register_cpu_notifier(struct notifier_block
*nb
)
175 cpu_maps_update_begin();
176 ret
= raw_notifier_chain_register(&cpu_chain
, nb
);
177 cpu_maps_update_done();
181 int __ref
__register_cpu_notifier(struct notifier_block
*nb
)
183 return raw_notifier_chain_register(&cpu_chain
, nb
);
186 static int __cpu_notify(unsigned long val
, void *v
, int nr_to_call
,
191 ret
= __raw_notifier_call_chain(&cpu_chain
, val
, v
, nr_to_call
,
194 return notifier_to_errno(ret
);
197 static int cpu_notify(unsigned long val
, void *v
)
199 return __cpu_notify(val
, v
, -1, NULL
);
202 #ifdef CONFIG_HOTPLUG_CPU
204 static void cpu_notify_nofail(unsigned long val
, void *v
)
206 BUG_ON(cpu_notify(val
, v
));
208 EXPORT_SYMBOL(register_cpu_notifier
);
209 EXPORT_SYMBOL(__register_cpu_notifier
);
211 void __ref
unregister_cpu_notifier(struct notifier_block
*nb
)
213 cpu_maps_update_begin();
214 raw_notifier_chain_unregister(&cpu_chain
, nb
);
215 cpu_maps_update_done();
217 EXPORT_SYMBOL(unregister_cpu_notifier
);
219 void __ref
__unregister_cpu_notifier(struct notifier_block
*nb
)
221 raw_notifier_chain_unregister(&cpu_chain
, nb
);
223 EXPORT_SYMBOL(__unregister_cpu_notifier
);
226 * clear_tasks_mm_cpumask - Safely clear tasks' mm_cpumask for a CPU
229 * This function walks all processes, finds a valid mm struct for each one and
230 * then clears a corresponding bit in mm's cpumask. While this all sounds
231 * trivial, there are various non-obvious corner cases, which this function
232 * tries to solve in a safe manner.
234 * Also note that the function uses a somewhat relaxed locking scheme, so it may
235 * be called only for an already offlined CPU.
237 void clear_tasks_mm_cpumask(int cpu
)
239 struct task_struct
*p
;
242 * This function is called after the cpu is taken down and marked
243 * offline, so its not like new tasks will ever get this cpu set in
244 * their mm mask. -- Peter Zijlstra
245 * Thus, we may use rcu_read_lock() here, instead of grabbing
246 * full-fledged tasklist_lock.
248 WARN_ON(cpu_online(cpu
));
250 for_each_process(p
) {
251 struct task_struct
*t
;
254 * Main thread might exit, but other threads may still have
255 * a valid mm. Find one.
257 t
= find_lock_task_mm(p
);
260 cpumask_clear_cpu(cpu
, mm_cpumask(t
->mm
));
266 static inline void check_for_tasks(int cpu
)
268 struct task_struct
*p
;
269 cputime_t utime
, stime
;
271 write_lock_irq(&tasklist_lock
);
272 for_each_process(p
) {
273 task_cputime(p
, &utime
, &stime
);
274 if (task_cpu(p
) == cpu
&& p
->state
== TASK_RUNNING
&&
276 printk(KERN_WARNING
"Task %s (pid = %d) is on cpu %d "
277 "(state = %ld, flags = %x)\n",
278 p
->comm
, task_pid_nr(p
), cpu
,
281 write_unlock_irq(&tasklist_lock
);
284 struct take_cpu_down_param
{
289 /* Take this CPU down. */
290 static int __ref
take_cpu_down(void *_param
)
292 struct take_cpu_down_param
*param
= _param
;
295 /* Ensure this CPU doesn't handle any more interrupts. */
296 err
= __cpu_disable();
300 cpu_notify(CPU_DYING
| param
->mod
, param
->hcpu
);
301 /* Park the stopper thread */
302 kthread_park(current
);
306 /* Requires cpu_add_remove_lock to be held */
307 static int __ref
_cpu_down(unsigned int cpu
, int tasks_frozen
)
309 int err
, nr_calls
= 0;
310 void *hcpu
= (void *)(long)cpu
;
311 unsigned long mod
= tasks_frozen
? CPU_TASKS_FROZEN
: 0;
312 struct take_cpu_down_param tcd_param
= {
317 if (num_online_cpus() == 1)
320 if (!cpu_online(cpu
))
325 err
= __cpu_notify(CPU_DOWN_PREPARE
| mod
, hcpu
, -1, &nr_calls
);
328 __cpu_notify(CPU_DOWN_FAILED
| mod
, hcpu
, nr_calls
, NULL
);
329 printk("%s: attempt to take down CPU %u failed\n",
333 smpboot_park_threads(cpu
);
335 err
= __stop_machine(take_cpu_down
, &tcd_param
, cpumask_of(cpu
));
337 /* CPU didn't die: tell everyone. Can't complain. */
338 smpboot_unpark_threads(cpu
);
339 cpu_notify_nofail(CPU_DOWN_FAILED
| mod
, hcpu
);
342 BUG_ON(cpu_online(cpu
));
345 * The migration_call() CPU_DYING callback will have removed all
346 * runnable tasks from the cpu, there's only the idle task left now
347 * that the migration thread is done doing the stop_machine thing.
349 * Wait for the stop thread to go away.
351 while (!idle_cpu(cpu
))
354 /* This actually kills the CPU. */
357 /* CPU is completely dead: tell everyone. Too late to complain. */
358 cpu_notify_nofail(CPU_DEAD
| mod
, hcpu
);
360 check_for_tasks(cpu
);
365 cpu_notify_nofail(CPU_POST_DEAD
| mod
, hcpu
);
369 int __ref
cpu_down(unsigned int cpu
)
373 cpu_maps_update_begin();
375 if (cpu_hotplug_disabled
) {
380 err
= _cpu_down(cpu
, 0);
383 cpu_maps_update_done();
386 EXPORT_SYMBOL(cpu_down
);
387 #endif /*CONFIG_HOTPLUG_CPU*/
389 /* Requires cpu_add_remove_lock to be held */
390 static int __cpuinit
_cpu_up(unsigned int cpu
, int tasks_frozen
)
392 int ret
, nr_calls
= 0;
393 void *hcpu
= (void *)(long)cpu
;
394 unsigned long mod
= tasks_frozen
? CPU_TASKS_FROZEN
: 0;
395 struct task_struct
*idle
;
399 if (cpu_online(cpu
) || !cpu_present(cpu
)) {
404 idle
= idle_thread_get(cpu
);
410 ret
= smpboot_create_threads(cpu
);
414 ret
= __cpu_notify(CPU_UP_PREPARE
| mod
, hcpu
, -1, &nr_calls
);
417 printk(KERN_WARNING
"%s: attempt to bring up CPU %u failed\n",
422 /* Arch-specific enabling code. */
423 ret
= __cpu_up(cpu
, idle
);
426 BUG_ON(!cpu_online(cpu
));
428 /* Wake the per cpu threads */
429 smpboot_unpark_threads(cpu
);
431 /* Now call notifier in preparation. */
432 cpu_notify(CPU_ONLINE
| mod
, hcpu
);
436 __cpu_notify(CPU_UP_CANCELED
| mod
, hcpu
, nr_calls
, NULL
);
443 int __cpuinit
cpu_up(unsigned int cpu
)
447 #ifdef CONFIG_MEMORY_HOTPLUG
452 if (!cpu_possible(cpu
)) {
453 printk(KERN_ERR
"can't online cpu %d because it is not "
454 "configured as may-hotadd at boot time\n", cpu
);
455 #if defined(CONFIG_IA64)
456 printk(KERN_ERR
"please check additional_cpus= boot "
462 #ifdef CONFIG_MEMORY_HOTPLUG
463 nid
= cpu_to_node(cpu
);
464 if (!node_online(nid
)) {
465 err
= mem_online_node(nid
);
470 pgdat
= NODE_DATA(nid
);
473 "Can't online cpu %d due to NULL pgdat\n", cpu
);
477 if (pgdat
->node_zonelists
->_zonerefs
->zone
== NULL
) {
478 mutex_lock(&zonelists_mutex
);
479 build_all_zonelists(NULL
, NULL
);
480 mutex_unlock(&zonelists_mutex
);
484 cpu_maps_update_begin();
486 if (cpu_hotplug_disabled
) {
491 err
= _cpu_up(cpu
, 0);
494 cpu_maps_update_done();
497 EXPORT_SYMBOL_GPL(cpu_up
);
499 #ifdef CONFIG_PM_SLEEP_SMP
500 static cpumask_var_t frozen_cpus
;
502 int disable_nonboot_cpus(void)
504 int cpu
, first_cpu
, error
= 0;
505 #if defined(CONFIG_ARM_EXYNOS_MP_CPUFREQ) || defined(CONFIG_ARM_EXYNOS_SMP_CPUFREQ)
508 if (exynos_boot_cluster
== CL_ZERO
)
509 lated_cpu
= NR_CLUST0_CPUS
;
511 lated_cpu
= NR_CLUST1_CPUS
;
514 cpu_maps_update_begin();
515 first_cpu
= cpumask_first(cpu_online_mask
);
517 * We take down all of the non-boot CPUs in one shot to avoid races
518 * with the userspace trying to use the CPU hotplug at the same time
520 cpumask_clear(frozen_cpus
);
522 printk("Disabling non-boot CPUs ...\n");
523 for_each_online_cpu(cpu
) {
524 #if defined(CONFIG_ARM_EXYNOS_MP_CPUFREQ) || defined(CONFIG_ARM_EXYNOS_SMP_CPUFREQ)
525 if (cpu
== first_cpu
|| cpu
== lated_cpu
)
527 if (cpu
== first_cpu
)
530 error
= _cpu_down(cpu
, 1);
532 cpumask_set_cpu(cpu
, frozen_cpus
);
534 printk(KERN_ERR
"Error taking CPU%d down: %d\n",
540 #if defined(CONFIG_ARM_EXYNOS_MP_CPUFREQ) || defined(CONFIG_ARM_EXYNOS_SMP_CPUFREQ)
541 if (num_online_cpus() > 1) {
542 error
= _cpu_down(lated_cpu
, 1);
544 cpumask_set_cpu(lated_cpu
, frozen_cpus
);
546 printk(KERN_ERR
"Error taking CPU%d down: %d\n",
551 BUG_ON(num_online_cpus() > 1);
552 /* Make sure the CPUs won't be enabled by someone else */
553 cpu_hotplug_disabled
= 1;
555 printk(KERN_ERR
"Non-boot CPUs are not disabled\n");
557 cpu_maps_update_done();
561 void __weak
arch_enable_nonboot_cpus_begin(void)
565 void __weak
arch_enable_nonboot_cpus_end(void)
569 #if defined(CONFIG_SCHED_HMP) && defined(CONFIG_EXYNOS5_DYNAMIC_CPU_HOTPLUG)
570 extern struct cpumask hmp_slow_cpu_mask
;
571 extern int disable_dm_hotplug_before_suspend
;
574 void __ref
enable_nonboot_cpus(void)
578 /* Allow everyone to use the CPU hotplug again */
579 cpu_maps_update_begin();
580 cpu_hotplug_disabled
= 0;
581 if (cpumask_empty(frozen_cpus
))
584 printk(KERN_INFO
"Enabling non-boot CPUs ...\n");
586 arch_enable_nonboot_cpus_begin();
588 #if defined(CONFIG_SCHED_HMP) && defined(CONFIG_EXYNOS5_DYNAMIC_CPU_HOTPLUG)
589 if (!disable_dm_hotplug_before_suspend
)
590 cpumask_and(frozen_cpus
, frozen_cpus
, &hmp_slow_cpu_mask
);
593 for_each_cpu(cpu
, frozen_cpus
) {
594 error
= _cpu_up(cpu
, 1);
596 printk(KERN_INFO
"CPU%d is up\n", cpu
);
599 printk(KERN_WARNING
"Error taking CPU%d up: %d\n", cpu
, error
);
602 arch_enable_nonboot_cpus_end();
604 cpumask_clear(frozen_cpus
);
606 cpu_maps_update_done();
609 static int __init
alloc_frozen_cpus(void)
611 if (!alloc_cpumask_var(&frozen_cpus
, GFP_KERNEL
|__GFP_ZERO
))
615 core_initcall(alloc_frozen_cpus
);
618 * When callbacks for CPU hotplug notifications are being executed, we must
619 * ensure that the state of the system with respect to the tasks being frozen
620 * or not, as reported by the notification, remains unchanged *throughout the
621 * duration* of the execution of the callbacks.
622 * Hence we need to prevent the freezer from racing with regular CPU hotplug.
624 * This synchronization is implemented by mutually excluding regular CPU
625 * hotplug and Suspend/Hibernate call paths by hooking onto the Suspend/
626 * Hibernate notifications.
629 cpu_hotplug_pm_callback(struct notifier_block
*nb
,
630 unsigned long action
, void *ptr
)
634 case PM_SUSPEND_PREPARE
:
635 case PM_HIBERNATION_PREPARE
:
636 cpu_hotplug_disable();
639 case PM_POST_SUSPEND
:
640 case PM_POST_HIBERNATION
:
641 cpu_hotplug_enable();
652 static int __init
cpu_hotplug_pm_sync_init(void)
655 * cpu_hotplug_pm_callback has higher priority than x86
656 * bsp_pm_callback which depends on cpu_hotplug_pm_callback
657 * to disable cpu hotplug to avoid cpu hotplug race.
659 pm_notifier(cpu_hotplug_pm_callback
, 0);
662 core_initcall(cpu_hotplug_pm_sync_init
);
664 #endif /* CONFIG_PM_SLEEP_SMP */
667 * notify_cpu_starting(cpu) - call the CPU_STARTING notifiers
668 * @cpu: cpu that just started
670 * This function calls the cpu_chain notifiers with CPU_STARTING.
671 * It must be called by the arch code on the new cpu, before the new cpu
672 * enables interrupts and before the "boot" cpu returns from __cpu_up().
674 void __cpuinit
notify_cpu_starting(unsigned int cpu
)
676 unsigned long val
= CPU_STARTING
;
678 #ifdef CONFIG_PM_SLEEP_SMP
679 if (frozen_cpus
!= NULL
&& cpumask_test_cpu(cpu
, frozen_cpus
))
680 val
= CPU_STARTING_FROZEN
;
681 #endif /* CONFIG_PM_SLEEP_SMP */
682 cpu_notify(val
, (void *)(long)cpu
);
685 #endif /* CONFIG_SMP */
688 * cpu_bit_bitmap[] is a special, "compressed" data structure that
689 * represents all NR_CPUS bits binary values of 1<<nr.
691 * It is used by cpumask_of() to get a constant address to a CPU
692 * mask value that has a single bit set only.
695 /* cpu_bit_bitmap[0] is empty - so we can back into it */
696 #define MASK_DECLARE_1(x) [x+1][0] = (1UL << (x))
697 #define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1(x+1)
698 #define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2(x+2)
699 #define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4(x+4)
701 const unsigned long cpu_bit_bitmap
[BITS_PER_LONG
+1][BITS_TO_LONGS(NR_CPUS
)] = {
703 MASK_DECLARE_8(0), MASK_DECLARE_8(8),
704 MASK_DECLARE_8(16), MASK_DECLARE_8(24),
705 #if BITS_PER_LONG > 32
706 MASK_DECLARE_8(32), MASK_DECLARE_8(40),
707 MASK_DECLARE_8(48), MASK_DECLARE_8(56),
710 EXPORT_SYMBOL_GPL(cpu_bit_bitmap
);
712 const DECLARE_BITMAP(cpu_all_bits
, NR_CPUS
) = CPU_BITS_ALL
;
713 EXPORT_SYMBOL(cpu_all_bits
);
715 #ifdef CONFIG_INIT_ALL_POSSIBLE
716 static DECLARE_BITMAP(cpu_possible_bits
, CONFIG_NR_CPUS
) __read_mostly
719 static DECLARE_BITMAP(cpu_possible_bits
, CONFIG_NR_CPUS
) __read_mostly
;
721 const struct cpumask
*const cpu_possible_mask
= to_cpumask(cpu_possible_bits
);
722 EXPORT_SYMBOL(cpu_possible_mask
);
724 static DECLARE_BITMAP(cpu_online_bits
, CONFIG_NR_CPUS
) __read_mostly
;
725 const struct cpumask
*const cpu_online_mask
= to_cpumask(cpu_online_bits
);
726 EXPORT_SYMBOL(cpu_online_mask
);
728 static DECLARE_BITMAP(cpu_present_bits
, CONFIG_NR_CPUS
) __read_mostly
;
729 const struct cpumask
*const cpu_present_mask
= to_cpumask(cpu_present_bits
);
730 EXPORT_SYMBOL(cpu_present_mask
);
732 static DECLARE_BITMAP(cpu_active_bits
, CONFIG_NR_CPUS
) __read_mostly
;
733 const struct cpumask
*const cpu_active_mask
= to_cpumask(cpu_active_bits
);
734 EXPORT_SYMBOL(cpu_active_mask
);
736 void set_cpu_possible(unsigned int cpu
, bool possible
)
739 cpumask_set_cpu(cpu
, to_cpumask(cpu_possible_bits
));
741 cpumask_clear_cpu(cpu
, to_cpumask(cpu_possible_bits
));
744 void set_cpu_present(unsigned int cpu
, bool present
)
747 cpumask_set_cpu(cpu
, to_cpumask(cpu_present_bits
));
749 cpumask_clear_cpu(cpu
, to_cpumask(cpu_present_bits
));
752 void set_cpu_online(unsigned int cpu
, bool online
)
755 cpumask_set_cpu(cpu
, to_cpumask(cpu_online_bits
));
756 cpumask_set_cpu(cpu
, to_cpumask(cpu_active_bits
));
758 cpumask_clear_cpu(cpu
, to_cpumask(cpu_online_bits
));
762 void set_cpu_active(unsigned int cpu
, bool active
)
765 cpumask_set_cpu(cpu
, to_cpumask(cpu_active_bits
));
767 cpumask_clear_cpu(cpu
, to_cpumask(cpu_active_bits
));
770 void init_cpu_present(const struct cpumask
*src
)
772 cpumask_copy(to_cpumask(cpu_present_bits
), src
);
775 void init_cpu_possible(const struct cpumask
*src
)
777 cpumask_copy(to_cpumask(cpu_possible_bits
), src
);
780 void init_cpu_online(const struct cpumask
*src
)
782 cpumask_copy(to_cpumask(cpu_online_bits
), src
);
785 static ATOMIC_NOTIFIER_HEAD(idle_notifier
);
787 void idle_notifier_register(struct notifier_block
*n
)
789 atomic_notifier_chain_register(&idle_notifier
, n
);
791 EXPORT_SYMBOL_GPL(idle_notifier_register
);
793 void idle_notifier_unregister(struct notifier_block
*n
)
795 atomic_notifier_chain_unregister(&idle_notifier
, n
);
797 EXPORT_SYMBOL_GPL(idle_notifier_unregister
);
799 void idle_notifier_call_chain(unsigned long val
)
801 atomic_notifier_call_chain(&idle_notifier
, val
, NULL
);
803 EXPORT_SYMBOL_GPL(idle_notifier_call_chain
);