Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116537
b: refs/heads/master
c: 81608f3
h: refs/heads/master
i:
  116535: 9f06202
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Oct 16, 2008
1 parent 4605d30 commit f9dbc3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c66a73f0796dacc2ff0d4af75794ec843ceb3d1
refs/heads/master: 81608f3c254512b906ab78082ec5966b376aacd5
8 changes: 2 additions & 6 deletions trunk/arch/x86/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,7 @@ int lapic_get_maxlvt(void)
*/

/* Clock divisor */
#ifdef CONFG_X86_64
#define APIC_DIVISOR 1
#else
#define APIC_DIVISOR 16
#endif

/*
* This function sets up the local APIC timer, with a timeout of
Expand Down Expand Up @@ -592,10 +588,10 @@ static int __init calibrate_APIC_clock(void)
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
*/
__setup_APIC_LVTT(1000000000, 0, 0);
__setup_APIC_LVTT(0xffffffff, 0, 0);

/* Let the interrupts run */
local_irq_enable();
Expand Down

0 comments on commit f9dbc3a

Please sign in to comment.