diff options
author | Guo Chao <yan@linux.vnet.ibm.com> | 2012-06-28 03:22:57 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-07-20 14:27:00 -0400 |
commit | d5b0b5b196b474ef26f46f2036c8fbaa8cca2cf5 (patch) | |
tree | 50612870a5bb9685b522f940cef2b7af0faace18 /arch | |
parent | bbbda79510b6e5d399fae76bdb9b999286eb1b59 (diff) |
KVM: x86: Fix typos in lapic.c
Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/lapic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index ce878788a39f..fff7173f6a71 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c | |||
@@ -719,7 +719,7 @@ static int apic_reg_read(struct kvm_lapic *apic, u32 offset, int len, | |||
719 | { | 719 | { |
720 | unsigned char alignment = offset & 0xf; | 720 | unsigned char alignment = offset & 0xf; |
721 | u32 result; | 721 | u32 result; |
722 | /* this bitmask has a bit cleared for each reserver register */ | 722 | /* this bitmask has a bit cleared for each reserved register */ |
723 | static const u64 rmask = 0x43ff01ffffffe70cULL; | 723 | static const u64 rmask = 0x43ff01ffffffe70cULL; |
724 | 724 | ||
725 | if ((alignment + len) > 4) { | 725 | if ((alignment + len) > 4) { |
@@ -792,7 +792,7 @@ static void start_apic_timer(struct kvm_lapic *apic) | |||
792 | atomic_set(&apic->lapic_timer.pending, 0); | 792 | atomic_set(&apic->lapic_timer.pending, 0); |
793 | 793 | ||
794 | if (apic_lvtt_period(apic) || apic_lvtt_oneshot(apic)) { | 794 | 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 */ |
796 | now = apic->lapic_timer.timer.base->get_time(); | 796 | now = apic->lapic_timer.timer.base->get_time(); |
797 | apic->lapic_timer.period = (u64)apic_get_reg(apic, APIC_TMICT) | 797 | apic->lapic_timer.period = (u64)apic_get_reg(apic, APIC_TMICT) |
798 | * APIC_BUS_CYCLE_NS * apic->divide_count; | 798 | * APIC_BUS_CYCLE_NS * apic->divide_count; |