From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759134AbXFPKa7 (ORCPT ); Sat, 16 Jun 2007 06:30:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755365AbXFPKYc (ORCPT ); Sat, 16 Jun 2007 06:24:32 -0400 Received: from www.osadl.org ([213.239.205.134]:37252 "EHLO mail.tglx.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755121AbXFPKYZ (ORCPT ); Sat, 16 Jun 2007 06:24:25 -0400 Message-Id: <20070616101637.350504251@inhelltoy.tec.linutronix.de> References: <20070616101126.296384219@inhelltoy.tec.linutronix.de> User-Agent: quilt/0.46-1 Date: Sat, 16 Jun 2007 10:36:22 -0000 From: Thomas Gleixner To: LKML Cc: Andrew Morton , Ingo Molnar , Andi Kleen , Chris Wright , Arjan van de Ven , Venkatesh Pallipadi , =?UTF-8?q?S=C3=A9bastien=20Dugu=C3=A9?= Subject: [patch-mm 21/25] x86_64: hpet restore vread Content-Disposition: inline; filename=x86-64-hpet-restore-vread.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >>From sebastien.dugue@bull.net It seems the hpet clocksource's vread method was lost in the x86_64 conversion to clockevents. So here it is. Signed-off-by: Sébastien Dugué Signed-off-by: Thomas Gleixner arch/i386/kernel/hpet.c | 10 ++++++++++ 1 file changed, 10 insertions(+) Index: linux-2.6.22-rc4-mm/arch/i386/kernel/hpet.c =================================================================== --- linux-2.6.22-rc4-mm.orig/arch/i386/kernel/hpet.c 2007-06-16 12:10:24.000000000 +0200 +++ linux-2.6.22-rc4-mm/arch/i386/kernel/hpet.c 2007-06-16 12:10:24.000000000 +0200 @@ -255,6 +255,13 @@ static cycle_t read_hpet(void) return (cycle_t)hpet_readl(HPET_COUNTER); } +#ifdef CONFIG_X86_64 +static cycle_t __vsyscall_fn vread_hpet(void) +{ + return readl((const void __iomem *)fix_to_virt(VSYSCALL_HPET) + 0xf0); +} +#endif + static struct clocksource clocksource_hpet = { .name = "hpet", .rating = 250, @@ -263,6 +270,9 @@ static struct clocksource clocksource_hp .shift = HPET_SHIFT, .flags = CLOCK_SOURCE_IS_CONTINUOUS, .resume = hpet_start_counter, +#ifdef CONFIG_X86_64 + .vread = vread_hpet, +#endif }; /* --