From: "Jan Beulich" <JBeulich@suse.com>
To: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: <olaf@aepfle.de>, <bp@alien8.de>, <apw@canonical.com>,
<x86@kernel.org>, <tglx@linutronix.de>,
<devel@linuxdriverproject.org>, <gregkh@linuxfoundation.org>,
<jasowang@redhat.com>, <linux-kernel@vger.kernel.org>,
<hpa@zytor.com>
Subject: Re: [PATCH V2 1/1] X86: Hyper-V: Get the local APIC timer frequency from the hypervisor
Date: Wed, 04 Sep 2013 08:17:11 +0100 [thread overview]
Message-ID: <5226FA9702000078000F0387@nat28.tlf.novell.com> (raw)
In-Reply-To: <1378233023-4512-1-git-send-email-kys@microsoft.com>
>>> On 03.09.13 at 20:30, "K. Y. Srinivasan" <kys@microsoft.com> wrote:
> @@ -76,6 +80,26 @@ static void __init ms_hyperv_init_platform(void)
> printk(KERN_INFO "HyperV: features 0x%x, hints 0x%x\n",
> ms_hyperv.features, ms_hyperv.hints);
>
> + if (ms_hyperv.features & HV_X64_MSR_APIC_FREQUENCY_AVAILABLE) {
> + /*
> + * Get the APIC frequency.
> + */
> + rdmsrl(HV_X64_MSR_APIC_FREQUENCY, hv_lapic_frequency);
> + hv_lapic_frequency /= HZ;
> + lapic_timer_frequency = hv_lapic_frequency;
> + printk(KERN_INFO "HyperV: LAPIC Timer Frequency: %#x\n",
> + lapic_timer_frequency);
> +
> + /*
> + * On Hyper-V, when we are booting off an EFI firmware stack,
> + * we do not have many legacy devices including PIC, PIT etc.
> + */
> + if (efi_enabled(EFI_BOOT)) {
> + printk(KERN_INFO "HyperV: Using null_legacy_pic\n");
> + legacy_pic = &null_legacy_pic;
> + }
And this check is really connected to the feature check around the
whole block, rather than being independent? (I'd also think that
this latter message would suffice to be KERN_DEBUG).
Jan
next prev parent reply other threads:[~2013-09-04 7:17 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-03 18:30 K. Y. Srinivasan
2013-09-04 7:17 ` Jan Beulich [this message]
2013-09-04 15:03 ` KY Srinivasan
2013-09-04 9:40 ` Gleb Natapov
2013-09-04 15:16 ` KY Srinivasan
2013-09-05 14:16 ` Gleb Natapov
2013-09-13 0:06 ` KY Srinivasan
2013-09-13 0:28 ` H. Peter Anvin
2013-09-13 1:43 ` KY Srinivasan
2013-09-13 6:39 ` Jan Beulich
2013-09-13 14:28 ` KY Srinivasan
2013-09-13 9:55 ` Gleb Natapov
2013-09-13 14:28 ` KY Srinivasan
2013-09-17 13:59 ` Gleb Natapov
2013-09-17 19:53 ` KY Srinivasan
2013-09-18 5:43 ` Gleb Natapov
2013-09-23 13:02 ` KY Srinivasan
2013-09-23 15:50 ` H. Peter Anvin
2013-09-23 19:23 ` KY Srinivasan
2013-10-02 23:11 ` KY Srinivasan
2013-09-27 15:10 ` Olaf Hering
2013-09-27 15:23 ` KY Srinivasan
2013-09-27 15:32 ` Olaf Hering
2013-09-27 15:35 ` KY Srinivasan
2013-10-09 22:50 ` H. Peter Anvin
2013-10-10 0:04 ` KY Srinivasan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5226FA9702000078000F0387@nat28.tlf.novell.com \
--to=jbeulich@suse.com \
--cc=apw@canonical.com \
--cc=bp@alien8.de \
--cc=devel@linuxdriverproject.org \
--cc=gregkh@linuxfoundation.org \
--cc=hpa@zytor.com \
--cc=jasowang@redhat.com \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=olaf@aepfle.de \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®