--- zzzz-none-000/linux-2.6.39.4/arch/x86/kernel/hpet.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/arch/x86/kernel/hpet.c 2021-11-10 13:23:10.000000000 +0000 @@ -275,7 +275,20 @@ hpet_restart_counter(); } +#ifdef CONFIG_ARCH_GEN3 +void hpet_disable_legacy_int(void) +{ + unsigned int cfg = hpet_readl(HPET_CFG); + + cfg &= ~HPET_CFG_LEGACY; + hpet_writel(cfg, HPET_CFG); + hpet_legacy_int_enabled = 0; +} + +void hpet_enable_legacy_int(void) +#else static void hpet_enable_legacy_int(void) +#endif { unsigned int cfg = hpet_readl(HPET_CFG);