use ci_ipending instead of ci_istate.ipending, NFC
This commit is contained in:
parent
3b6f899d34
commit
931705a8c6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lapic.c,v 1.67 2018/09/23 00:59:59 cherry Exp $ */
|
||||
/* $NetBSD: lapic.c,v 1.68 2018/12/16 20:58:00 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.67 2018/09/23 00:59:59 cherry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.68 2018/12/16 20:58:00 jdolecek Exp $");
|
||||
|
||||
#include "acpica.h"
|
||||
#include "ioapic.h"
|
||||
|
@ -535,7 +535,7 @@ lapic_get_timecount(struct timecounter *tc)
|
|||
if (lapic_readreg(reg) & (1 << (LAPIC_TIMER_VECTOR % 32))) {
|
||||
cur_timer -= lapic_tval;
|
||||
}
|
||||
} else if (ci->ci_istate.ipending & (1 << LIR_TIMER))
|
||||
} else if (ci->ci_ipending & (1 << LIR_TIMER))
|
||||
cur_timer = lapic_gettick() - lapic_tval;
|
||||
cur_timer = ci->ci_lapic_counter - cur_timer;
|
||||
splx(s);
|
||||
|
|
Loading…
Reference in New Issue