If we don't use PIT, we should disable it at boot time and at S3
resuming. In Xen this is done by disable_pit_irq(), but this function
is used by __initcall(). After bootstrap it will be discarded and may be
overwritten. This usually results in S3 resuming failure.
Signed-off-by: Huacai Chen <huacai.chen@intel.com>
Signed-off-by: Li Zhang <li.zhang@intel.com>
setup_irq(0, &irq0);
}
-static int __init disable_pit_irq(void)
+static int disable_pit_irq(void)
{
if ( !using_pit && cpu_has_apic )
{