Displaying 1 result from an estimated 1 matches for "hpet_id_numb".
Did you mean:
hpet_id_number
2012 Mar 27
0
[PATCH 1/4] x86/hpet: disable before reboot or kexec
...u64 __init hpet_setup(void)
{
static u64 __initdata hpet_rate;
u32 hpet_id, hpet_period;
+ unsigned int last;
if ( hpet_rate )
return hpet_rate;
@@ -732,7 +735,9 @@ u64 __init hpet_setup(void)
return 0;
}
- hpet_resume();
+ last = (hpet_id & HPET_ID_NUMBER) >> HPET_ID_NUMBER_SHIFT;
+ hpet_boot_cfg = xmalloc_array(u32, 2 + last);
+ hpet_resume(hpet_boot_cfg);
hpet_rate = 1000000000000000ULL; /* 10^15 */
(void)do_div(hpet_rate, hpet_period);
@@ -740,24 +745,29 @@ u64 __init hpet_setup(void)
return hpet_rate;
}
-void hp...