From: Thomas Gleixner <tglx@linutronix.de>
To: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: x86@kernel.org, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org, devel@linuxdriverproject.org,
olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com,
Vivek yadav <vyadav@microsoft.com>
Subject: Re: [PATCH 1/1] x86: Hyper-V: Mark the Hyper-V clocksource as being high resolution
Date: Sat, 4 Jul 2015 10:10:32 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.11.1507041008290.3916@nanos> (raw)
In-Reply-To: <1435966643-3476-1-git-send-email-kys@microsoft.com>
On Fri, 3 Jul 2015, K. Y. Srinivasan wrote:
> From: Vivek yadav <vyadav@microsoft.com>
>
> By design, alternative clock sources listed are based on the resolution of
> current clock source. Once you set a high resolution clock,
> only high resolution sources are returned.
> Mark Hyper-V clock source as a high resolution clock source.
>
> Signed-off-by: Vivek yadav <vyadav@microsoft.com>
> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> ---
> arch/x86/kernel/cpu/mshyperv.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c
> index 9b5d7b5..0e507a0 100644
> --- a/arch/x86/kernel/cpu/mshyperv.c
> +++ b/arch/x86/kernel/cpu/mshyperv.c
> @@ -151,7 +151,8 @@ static struct clocksource hyperv_cs = {
> .rating = 400, /* use this when running on Hyperv*/
> .read = read_hv_clock,
> .mask = CLOCKSOURCE_MASK(64),
> - .flags = CLOCK_SOURCE_IS_CONTINUOUS,
> + .flags = CLOCK_SOURCE_IS_CONTINUOUS |
> + CLOCK_SOURCE_VALID_FOR_HRES,
No, this is wrong. The CLOCK_SOURCE_VALID_FOR_HRES flag is managed by
the core code and set when a clocksource fulfils the criteria.
The changelog above is not explaining what problem you are trying to
solve.
Thanks,
tglx
next prev parent reply other threads:[~2015-07-05 13:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 23:37 [PATCH 1/1] x86: Hyper-V: Mark the Hyper-V clocksource as being high resolution K. Y. Srinivasan
2015-07-04 8:10 ` Thomas Gleixner [this message]
2015-07-04 16:11 ` 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=alpine.DEB.2.11.1507041008290.3916@nanos \
--to=tglx@linutronix.de \
--cc=apw@canonical.com \
--cc=devel@linuxdriverproject.org \
--cc=gregkh@linuxfoundation.org \
--cc=jasowang@redhat.com \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=olaf@aepfle.de \
--cc=vyadav@microsoft.com \
--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