Move ipi for pit to after EOI

This commit is contained in:
Jeremy Soller
2018-09-25 18:05:10 -06:00
parent e867326df1
commit f5fcbc12b8

View File

@@ -40,9 +40,6 @@ pub unsafe fn acknowledge(irq: usize) {
}
interrupt!(pit, {
// Wake up other CPUs
ipi(IpiKind::Pit, IpiTarget::Other);
// Saves CPU time by not sending IRQ event irq_trigger(0);
const PIT_RATE: u64 = 2_250_286;
@@ -56,6 +53,9 @@ interrupt!(pit, {
pic::MASTER.ack();
// Wake up other CPUs
ipi(IpiKind::Pit, IpiTarget::Other);
// Any better way of doing this?
timeout::trigger();