lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1319566096-3222-8-git-send-email-y>
Date:	Tue, 25 Oct 2011 11:08:16 -0700
From:	y@...nel.beaverton.ibm.com
To:	lkml <linux-kernel@...r.kernel.org>
Cc:	John Stultz <johnstul@...ibm.com>,
	Thomas Gleixner <tglx@...utronix.de>,
	"K. Y. Srinivasan" <ksrinivasan@...ell.com>
Subject: [PATCH 8/8] clocksource: hyperv: Convert to clocksource_register_khz

From: John Stultz <johnstul@...ibm.com>

Convert to using clocksource_register_khz

Signed-off-by: John Stultz <johnstul@...ibm.com>
CC: Thomas Gleixner <tglx@...utronix.de>
CC: K. Y. Srinivasan <ksrinivasan@...ell.com>
---
 drivers/staging/hv/hv_timesource.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/hv/hv_timesource.c b/drivers/staging/hv/hv_timesource.c
index 2b0f9aa..0379b2d 100644
--- a/drivers/staging/hv/hv_timesource.c
+++ b/drivers/staging/hv/hv_timesource.c
@@ -50,14 +50,6 @@ static struct clocksource hyperv_cs = {
 	.rating         = 400, /* use this when running on Hyperv*/
 	.read           = read_hv_clock,
 	.mask           = CLOCKSOURCE_MASK(64),
-	/*
-	 * The time ref counter in HyperV is in 100ns units.
-	 * The definition of mult is:
-	 * mult/2^shift = ns/cyc = 100
-	 * mult = (100 << shift)
-	 */
-	.mult           = (100 << HV_CLOCK_SHIFT),
-	.shift          = HV_CLOCK_SHIFT,
 };
 
 static const struct dmi_system_id __initconst
@@ -92,7 +84,7 @@ static int __init init_hv_clocksource(void)
 		return -ENODEV;
 
 	pr_info("Registering HyperV clock source\n");
-	return clocksource_register(&hyperv_cs);
+	return clocksource_register_khz(&hyperv_cs, 10000);
 }
 
 module_init(init_hv_clocksource);
-- 
1.7.3.2.146.gca209

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ