Received: from lists.sw.ru (lists.sw.ru [195.214.232.39]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id p2MIGW0V007548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Mar 2011 21:16:33 +0300 (MSK) Received: from lists.sw.ru (lists.sw.ru [127.0.0.1]) by lists.sw.ru (8.13.1/8.13.1) with ESMTP id p2MIGTwx022315; Tue, 22 Mar 2011 21:16:29 +0300 Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by lists.sw.ru (8.13.1/8.13.1) with ESMTP id p2MIGSiK022303 for ; Tue, 22 Mar 2011 21:16:28 +0300 Received: from relay.parallels.com (relay.parallels.com [195.214.232.42]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id p2MIGTcn028704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 22 Mar 2011 21:16:30 +0300 (MSK) Received: from msk-exch1.sw.swsoft.com ([10.30.1.231] helo=mail.sw.ru) by relay.parallels.com with esmtps (TLSv1:RC4-MD5:128) (Exim 4.74) (envelope-from ) id 1Q2682-0005nS-Rs for vzlin-dev@sw.ru; Tue, 22 Mar 2011 21:16:26 +0300 Received: from localhost (10.30.20.58) by mail.sw.ru (10.30.1.231) with Microsoft SMTP Server id 8.3.83.0; Tue, 22 Mar 2011 21:16:24 +0300 To: From: Konstantin Khlebnikov Date: Tue, 22 Mar 2011 21:16:24 +0300 Message-ID: <20110322181624.6113.98302.stgit@localhost6> User-Agent: StGit/0.15 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: xemul@sw.ru Subject: [vzlin-dev] [PATCH rh5] ms-vdso: disable gettimeofday for pm-timer clocksource X-BeenThere: vzlin-dev@lists.sw.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vzlin-dev@lists.sw.ru List-Id: VZlinux Developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: vzlin-dev-bounces@lists.sw.ru Errors-To: vzlin-dev-bounces@lists.sw.ru Content-Length: 1218 vdso-gettimeofday can't work with pm-timer clocksource. https://jira.sw.ru/browse/PCLIN-28962 Signed-off-by: Konstantin Khlebnikov --- arch/x86_64/vdso/vclock_gettime.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86_64/vdso/vclock_gettime.c b/arch/x86_64/vdso/vclock_gettime.c index d195db2..67791ea 100644 --- a/arch/x86_64/vdso/vclock_gettime.c +++ b/arch/x86_64/vdso/vclock_gettime.c @@ -105,7 +105,7 @@ static noinline int do_monotonic(struct timespec *ts) int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) { - if (likely(vdso_sysctl_vsyscall && (vdso_vxtime->mode != VXTIME_KVM))) + if (likely(vdso_sysctl_vsyscall && (vdso_vxtime->mode < VXTIME_PMTMR))) switch (clock) { case CLOCK_REALTIME: return do_realtime(ts); @@ -121,7 +121,7 @@ int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) { long ret; - if (likely(vdso_sysctl_vsyscall && (vdso_vxtime->mode != VXTIME_KVM))) { + if (likely(vdso_sysctl_vsyscall && (vdso_vxtime->mode < VXTIME_PMTMR))) { BUILD_BUG_ON(offsetof(struct timeval, tv_usec) != offsetof(struct timespec, tv_nsec) || sizeof(*tv) != sizeof(struct timespec));