Message ID | 1421772090-13113-3-git-send-email-pang.xunlei@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <rtc-linux+bncBDP5TRNE3AARBSUK7KSQKGQEXOHAHYY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ie0-x23a.google.com (mail-ie0-x23a.google.com [IPv6:2607:f8b0:4001:c03::23a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 280451402DD for <incoming@patchwork.ozlabs.org>; Wed, 21 Jan 2015 03:41:49 +1100 (AEDT) Received: by mail-ie0-f186.google.com with SMTP id vy18sf5938986iec.3 for <incoming@patchwork.ozlabs.org>; Tue, 20 Jan 2015 08:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:content-type:precedence:mailing-list:list-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe; bh=8fUYQSPnfomysV45e8H6neB1otASWu5mPxAgkt2a3wI=; b=lrQHJCshyIDQ//Hl5iplu85MSTbXqiBXIJVYFYzcSB4mHF5/WqEcOVj1bSaZfOYTc6 L7uPMvWUjynkgDXHhfxEktBR8Vx/8aCSyw3oaQkQuKuvbqUqEsg4lWmtueTslrXXfdZh 8nhllpt4NYOaY8r2LgXyIjxLylLtZ9v8GuNBUl6JHT8B99QRgKpywB831963Z00TwEE9 nEHBr5vP59SyGMswFJycjvCv6NINPyh0J0nEKPAPJm2Nx3Z/R4gei5SF0BxA/VH9VCEx hULvGYzNtl3rw599l3D7Fz2XVDdkaUhqF8hV2srECOZuKZCwNWRnSOkMRyl6gMGo1DAq b/tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:content-type:precedence :mailing-list:list-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=8fUYQSPnfomysV45e8H6neB1otASWu5mPxAgkt2a3wI=; b=jHWIOj+kPy559ZRkjxfrJkRURJncApA3XgLqFpsw2pmywIf+K9jgxwaiHnz7NG3pHt hfSE7iRzqxbMheZdiJ/O5pSk+iV8G+02Ii/VWXIhKAlPsduvuI3cAolHKuSk4WxkeSSk 929Oeap6iJpnvKKJmbpMHG4SBBuOBGAI0siWcswnZ2uAcWKfiOMtgJ46t9QTwR1BLegY AfDb+qAwnysK3fcVJb5dtbXXLz1q9EN2DqqcA+4SLX4QiGZSiWhHZOrBB1WNERciqrWs HCn3numy3ZzJ9Rae/uPuzpv0SztQhnQD7EnA1w1zk8nwN4+qff/RTvmzp5TLl2nk5SdA 7BpA== X-Received: by 10.50.178.180 with SMTP id cz20mr360146igc.14.1421772106294; Tue, 20 Jan 2015 08:41:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.41.36 with SMTP id c4ls1919706igl.8.gmail; Tue, 20 Jan 2015 08:41:46 -0800 (PST) X-Received: by 10.42.86.193 with SMTP id v1mr29063927icl.10.1421772106141; Tue, 20 Jan 2015 08:41:46 -0800 (PST) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com. [209.85.223.181]) by gmr-mx.google.com with ESMTPS id n1si264930igp.0.2015.01.20.08.41.46 for <rtc-linux@googlegroups.com> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 08:41:46 -0800 (PST) Received-SPF: pass (google.com: domain of pang.xunlei@linaro.org designates 209.85.223.181 as permitted sender) client-ip=209.85.223.181; Received: by mail-ie0-f181.google.com with SMTP id vy18so13439838iec.12 for <rtc-linux@googlegroups.com>; Tue, 20 Jan 2015 08:41:46 -0800 (PST) X-Gm-Message-State: ALoCoQkTjE1JzU/xz/lgZqkXzMhR07QRQgi1sYfe14LO/3/0otHfeM8xStMoZQPK/lDlKl9lABM6 X-Received: by 10.50.50.140 with SMTP id c12mr27735906igo.5.1421772106056; Tue, 20 Jan 2015 08:41:46 -0800 (PST) Received: from ip-10-181-65-231.ec2.internal ([54.235.93.228]) by mx.google.com with ESMTPSA id q7sm3117924igx.9.2015.01.20.08.41.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 08:41:45 -0800 (PST) From: Xunlei Pang <pang.xunlei@linaro.org> To: linux-kernel@vger.kernel.org Cc: rtc-linux@googlegroups.com, Thomas Gleixner <tglx@linutronix.de>, Alessandro Zummo <a.zummo@towertech.it>, Feng Tang <feng.tang@intel.com>, John Stultz <john.stultz@linaro.org>, Arnd Bergmann <arnd.bergmann@linaro.org>, Xunlei Pang <pang.xunlei@linaro.org> Subject: [rtc-linux] [PATCH 3/3] time: clocksource: Add a comment to CLOCK_SOURCE_SUSPEND_NONSTOP Date: Tue, 20 Jan 2015 16:41:30 +0000 Message-Id: <1421772090-13113-3-git-send-email-pang.xunlei@linaro.org> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1421772090-13113-1-git-send-email-pang.xunlei@linaro.org> References: <1421772090-13113-1-git-send-email-pang.xunlei@linaro.org> X-Original-Sender: pang.xunlei@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of pang.xunlei@linaro.org designates 209.85.223.181 as permitted sender) smtp.mail=pang.xunlei@linaro.org Reply-To: rtc-linux@googlegroups.com Content-Type: text/plain; charset=UTF-8 Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com>, <http://groups.google.com/group/rtc-linux/subscribe> |
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index abcafaa..20bca76 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -207,6 +207,11 @@ struct clocksource { #define CLOCK_SOURCE_WATCHDOG 0x10 #define CLOCK_SOURCE_VALID_FOR_HRES 0x20 #define CLOCK_SOURCE_UNSTABLE 0x40 + +/* + * Setting this flag, also means it doesn't wrap back during + * system suspend/resume. See timekeeping_resume(). + */ #define CLOCK_SOURCE_SUSPEND_NONSTOP 0x80 #define CLOCK_SOURCE_RESELECT 0x100
When doing timekeeping_resume(), if the nonstop clocksource wraps back, "cycle_delta" will miss the wrap time. So add a comment to indicate that if have this flag set, you are aware that this nonstop clocksource won't wrap during suspension. Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org> --- include/linux/clocksource.h | 5 +++++ 1 file changed, 5 insertions(+)