All of lore.kernel.org
 help / color / mirror / Atom feed
From: Venki Pallipadi <venkatesh.pallipadi@intel.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] ia64: Fix CPU freq displayed in /proc/cpuinfo
Date: Fri, 06 Apr 2007 17:04:49 +0000	[thread overview]
Message-ID: <20070406170449.GA21441@linux-os.sc.intel.com> (raw)



My patch: git commit•235ca2c20ac0b31a8eb39e2d599bcc3e9c9a10 introduced a bug
in IA64 cpuinfo output.

Patch changed the proc_freq from 1HZ resolution to 1KHz resolution, but left
format string unchanged at " %lu.%06lu". Below is the fix.

Thanks to Bjorn for catching this.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>

Index: new/arch/ia64/kernel/setup.c
=================================--- new.orig/arch/ia64/kernel/setup.c	2007-04-02 09:42:37.000000000 -0700
+++ new/arch/ia64/kernel/setup.c	2007-04-06 08:31:23.000000000 -0700
@@ -639,7 +639,7 @@
 		   "features   : %s\n"
 		   "cpu number : %lu\n"
 		   "cpu regs   : %u\n"
-		   "cpu MHz    : %lu.%06lu\n"
+		   "cpu MHz    : %lu.%03lu\n"
 		   "itc MHz    : %lu.%06lu\n"
 		   "BogoMIPS   : %lu.%02lu\n",
 		   cpunum, c->vendor, c->family, c->model,

             reply	other threads:[~2007-04-06 17:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-06 17:04 Venki Pallipadi [this message]
2007-04-06 17:29 ` [PATCH] ia64: Fix CPU freq displayed in /proc/cpuinfo Luck, Tony
2007-04-06 17:48 ` Venki Pallipadi

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=20070406170449.GA21441@linux-os.sc.intel.com \
    --to=venkatesh.pallipadi@intel.com \
    --cc=linux-ia64@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.