public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Brian J. Johnson" <bjohnson@sgi.com>
To: Star Zeng <star.zeng@intel.com>, <edk2-devel@lists.01.org>
Cc: Michael D Kinney <michael.d.kinney@intel.com>,
	Liming Gao <liming.gao@intel.com>
Subject: Re: [PATCH] PcAtChipsetPkg AcpiTimerLib: Get more accurate TSC Frequency
Date: Thu, 11 Aug 2016 08:41:13 -0500	[thread overview]
Message-ID: <cd215b9c-912a-78dd-8c4c-0d52e1e4686c@sgi.com> (raw)
In-Reply-To: <1470883079-4472-1-git-send-email-star.zeng@intel.com>

On 08/10/2016 09:37 PM, Star Zeng wrote:
> Minimize the code overhead between the two TSC reads by adding
> new internal API to calculate TSC Frequency instead of reusing
> MicroSecondDelay ().

Why not just use the MSR_PLATFORM_INFO (0xce) register bits 15..8, on 
CPUs where it's available, to read the TSC frequency directly?
-- 

						Brian J. Johnson

--------------------------------------------------------------------

   My statements are my own, are not authorized by SGI, and do not
   necessarily represent SGI’s positions.


  parent reply	other threads:[~2016-08-11 13:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-11  2:37 [PATCH] PcAtChipsetPkg AcpiTimerLib: Get more accurate TSC Frequency Star Zeng
2016-08-11  2:42 ` Gao, Liming
2016-08-11  5:01 ` Kinney, Michael D
2016-08-11 13:41 ` Brian J. Johnson [this message]
2016-08-12  1:07   ` Zeng, Star
2016-08-12  8:31 ` Paolo Bonzini
2016-08-12  8:43   ` Zeng, Star
2016-08-12 18:27   ` Kinney, Michael D

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-list 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=cd215b9c-912a-78dd-8c4c-0d52e1e4686c@sgi.com \
    --to=devel@edk2.groups.io \
    /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