mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-19 07:27:50 +00:00
x86: apic - unify setup_apicpmtimer
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
7c37e48b51
commit
920fa7a507
@ -1774,6 +1774,16 @@ static int __init parse_nolapic_timer(char *arg)
|
||||
}
|
||||
early_param("nolapic_timer", parse_nolapic_timer);
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
static __init int setup_apicpmtimer(char *s)
|
||||
{
|
||||
apic_calibrate_pmtmr = 1;
|
||||
notsc_setup(NULL);
|
||||
return 0;
|
||||
}
|
||||
__setup("apicpmtimer", setup_apicpmtimer);
|
||||
#endif
|
||||
|
||||
static int __init apic_set_verbosity(char *arg)
|
||||
{
|
||||
if (!arg) {
|
||||
|
@ -1810,6 +1810,7 @@ static int __init parse_nolapic_timer(char *arg)
|
||||
}
|
||||
early_param("nolapic_timer", parse_nolapic_timer);
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
static __init int setup_apicpmtimer(char *s)
|
||||
{
|
||||
apic_calibrate_pmtmr = 1;
|
||||
@ -1817,6 +1818,7 @@ static __init int setup_apicpmtimer(char *s)
|
||||
return 0;
|
||||
}
|
||||
__setup("apicpmtimer", setup_apicpmtimer);
|
||||
#endif
|
||||
|
||||
static int __init apic_set_verbosity(char *arg)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user