Skip to content

Commit d5b0b5b

Browse files
Guo Chaomatosatti
authored andcommitted
KVM: x86: Fix typos in lapic.c
Signed-off-by: Guo Chao <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
1 parent bbbda79 commit d5b0b5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kvm/lapic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ static int apic_reg_read(struct kvm_lapic *apic, u32 offset, int len,
719719
{
720720
unsigned char alignment = offset & 0xf;
721721
u32 result;
722-
/* this bitmask has a bit cleared for each reserver register */
722+
/* this bitmask has a bit cleared for each reserved register */
723723
static const u64 rmask = 0x43ff01ffffffe70cULL;
724724

725725
if ((alignment + len) > 4) {
@@ -792,7 +792,7 @@ static void start_apic_timer(struct kvm_lapic *apic)
792792
atomic_set(&apic->lapic_timer.pending, 0);
793793

794794
if (apic_lvtt_period(apic) || apic_lvtt_oneshot(apic)) {
795-
/* lapic timer in oneshot or peroidic mode */
795+
/* lapic timer in oneshot or periodic mode */
796796
now = apic->lapic_timer.timer.base->get_time();
797797
apic->lapic_timer.period = (u64)apic_get_reg(apic, APIC_TMICT)
798798
* APIC_BUS_CYCLE_NS * apic->divide_count;

0 commit comments

Comments
 (0)