Skip to contentSkip to conversation

Timer Selection

DISCUSSION Dong Feng 2 participants 3 messages Sep 10, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Dong Feng

author
#1 lore raw

In i386 architecture, there are five timers as candidates in the selection of "cur_timer." I feel among the five only two types can be used as Kernel base timer, HPET and PIT. Kernel base timer is the timer trigger timer_interrupt() periodically. Namely, the timer installed on IRQ 0 in i386 architecture.

Is the above understanding correct? Particularly I want to confirm which timers can be used as Kernel base timer.

Thanks.

Feng,Dong

#2 lore raw
In reply to a message not in the archive
Quoted 8 lines · Dong Feng

In i386 architecture, there are five timers as candidates in the selection of "cur_timer." I feel among the five only two types can be used as Kernel base timer, HPET and PIT. Kernel base timer is the timer trigger timer_interrupt() periodically. Namely, the timer installed on IRQ 0 in i386 architecture.

Is the above understanding correct? Particularly I want to confirm which timers can be used as Kernel base timer.

Only HPET and PIT can be interrupt 0 in the PC architecture (HPET only if the legacy option is available), but there is no reason the main timer handler cannot be driven from another interval timer (e.g. x86-64 offers the APIC timer as a option for this)

-Andi

author
#3 lore raw

Thank you very much.

2006/9/10, Andi Kleen <[email protected]>:

Quoted 17 lines · Dong Feng
Quoted 8 lines

In i386 architecture, there are five timers as candidates in the selection of "cur_timer." I feel among the five only two types can be used as Kernel base timer, HPET and PIT. Kernel base timer is the timer trigger timer_interrupt() periodically. Namely, the timer installed on IRQ 0 in i386 architecture.

Is the above understanding correct? Particularly I want to confirm which timers can be used as Kernel base timer.

Only HPET and PIT can be interrupt 0 in the PC architecture (HPET only if the legacy option is available), but there is no reason the main timer handler cannot be driven from another interval timer (e.g. x86-64 offers the APIC timer as a option for this)

-Andi