projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86: apic - unify APIC_DIVISOR
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
arch
/
x86
/
kernel
/
apic.c
diff --git
a/arch/x86/kernel/apic.c
b/arch/x86/kernel/apic.c
index 1f48bd1c9f2dd9775a121ff4574bd02f53c8f0c6..04a7f960bbc0a2408907a959af527382dae477a5 100644
(file)
--- a/
arch/x86/kernel/apic.c
+++ b/
arch/x86/kernel/apic.c
@@
-332,11
+332,7
@@
int lapic_get_maxlvt(void)
*/
/* Clock divisor */
*/
/* Clock divisor */
-#ifdef CONFG_X86_64
-#define APIC_DIVISOR 1
-#else
#define APIC_DIVISOR 16
#define APIC_DIVISOR 16
-#endif
/*
* This function sets up the local APIC timer, with a timeout of
/*
* This function sets up the local APIC timer, with a timeout of
@@
-592,10
+588,10
@@
static int __init calibrate_APIC_clock(void)
global_clock_event->event_handler = lapic_cal_handler;
/*
global_clock_event->event_handler = lapic_cal_handler;
/*
- * Setup the APIC counter to
1e9
. There is no way the lapic
+ * Setup the APIC counter to
maximum
. There is no way the lapic
* can underflow in the 100ms detection time frame
*/
* can underflow in the 100ms detection time frame
*/
- __setup_APIC_LVTT(
1000000000
, 0, 0);
+ __setup_APIC_LVTT(
0xffffffff
, 0, 0);
/* Let the interrupts run */
local_irq_enable();
/* Let the interrupts run */
local_irq_enable();