]> Pileus Git - ~andy/linux/commitdiff
KVM: x86: Fix typos in lapic.c
authorGuo Chao <yan@linux.vnet.ibm.com>
Thu, 28 Jun 2012 07:22:57 +0000 (15:22 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 20 Jul 2012 18:27:00 +0000 (15:27 -0300)
Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/lapic.c

index ce878788a39fd13e486fd3557011d5bf28a47d2d..fff7173f6a7100f793af3f53d851274bfa8f7137 100644 (file)
@@ -719,7 +719,7 @@ static int apic_reg_read(struct kvm_lapic *apic, u32 offset, int len,
 {
        unsigned char alignment = offset & 0xf;
        u32 result;
-       /* this bitmask has a bit cleared for each reserver register */
+       /* this bitmask has a bit cleared for each reserved register */
        static const u64 rmask = 0x43ff01ffffffe70cULL;
 
        if ((alignment + len) > 4) {
@@ -792,7 +792,7 @@ static void start_apic_timer(struct kvm_lapic *apic)
        atomic_set(&apic->lapic_timer.pending, 0);
 
        if (apic_lvtt_period(apic) || apic_lvtt_oneshot(apic)) {
-               /* lapic timer in oneshot or peroidic mode */
+               /* lapic timer in oneshot or periodic mode */
                now = apic->lapic_timer.timer.base->get_time();
                apic->lapic_timer.period = (u64)apic_get_reg(apic, APIC_TMICT)
                            * APIC_BUS_CYCLE_NS * apic->divide_count;