{"id":806405,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806405/?format=json","project":{"id":47,"url":"http://patchwork.ozlabs.org/api/1.0/projects/47/?format=json","name":"Open vSwitch","link_name":"openvswitch","list_id":"ovs-dev.openvswitch.org","list_email":"ovs-dev@openvswitch.org","web_url":"http://openvswitch.org/","scm_url":"git@github.com:openvswitch/ovs.git","webscm_url":"https://github.com/openvswitch/ovs"},"msgid":"<1503904105-10475-1-git-send-email-i.maximets@samsung.com>","date":"2017-08-28T07:08:25","name":"[ovs-dev] timeval: Fix misleading function descriptions.","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"ae84dc14dba75968b59fa3988c2d1e4de018a912","submitter":{"id":67162,"url":"http://patchwork.ozlabs.org/api/1.0/people/67162/?format=json","name":"Ilya Maximets","email":"i.maximets@samsung.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/openvswitch/patch/1503904105-10475-1-git-send-email-i.maximets@samsung.com/mbox/","series":[{"id":90,"url":"http://patchwork.ozlabs.org/api/1.0/series/90/?format=json","date":"2017-08-28T07:08:25","name":"[ovs-dev] timeval: Fix misleading function descriptions.","version":1,"mbox":"http://patchwork.ozlabs.org/series/90/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806405/checks/","tags":{},"headers":{"Return-Path":"<ovs-dev-bounces@openvswitch.org>","X-Original-To":["incoming@patchwork.ozlabs.org","ovs-dev@openvswitch.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","ovs-dev@mail.linuxfoundation.org"],"Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=openvswitch.org\n\t(client-ip=140.211.169.12; helo=mail.linuxfoundation.org;\n\tenvelope-from=ovs-dev-bounces@openvswitch.org;\n\treceiver=<UNKNOWN>)","Received":["from mail.linuxfoundation.org (mail.linuxfoundation.org\n\t[140.211.169.12])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xgjY85560z9sNc\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 17:08:44 +1000 (AEST)","from mail.linux-foundation.org (localhost [127.0.0.1])\n\tby mail.linuxfoundation.org (Postfix) with ESMTP id 9CD0B9BA;\n\tMon, 28 Aug 2017 07:08:40 +0000 (UTC)","from smtp1.linuxfoundation.org (smtp1.linux-foundation.org\n\t[172.17.192.35])\n\tby mail.linuxfoundation.org (Postfix) with ESMTPS id A6640957\n\tfor <ovs-dev@openvswitch.org>; Mon, 28 Aug 2017 07:08:39 +0000 (UTC)","from mailout2.w1.samsung.com (mailout2.w1.samsung.com\n\t[210.118.77.12])\n\tby smtp1.linuxfoundation.org (Postfix) with ESMTPS id CAF118A\n\tfor <ovs-dev@openvswitch.org>; Mon, 28 Aug 2017 07:08:38 +0000 (UTC)","from eucas1p1.samsung.com (unknown [182.198.249.206])\n\tby mailout2.w1.samsung.com (KnoxPortal) with ESMTP id\n\t20170828070835euoutp029c62db184decfc7f53908977d49c8e70~e8NMzfz-K2460724607euoutp02S;\n\tMon, 28 Aug 2017 07:08:35 +0000 (GMT)","from eusmges1.samsung.com (unknown [203.254.199.239]) by\n\teucas1p1.samsung.com (KnoxPortal) with ESMTP id\n\t20170828070834eucas1p1fa363cede87f13c5a878ce2678b0dd27~e8NMJkGta1270712707eucas1p1o;\n\tMon, 28 Aug 2017 07:08:34 +0000 (GMT)","from eucas1p2.samsung.com ( [182.198.249.207]) by\n\teusmges1.samsung.com  (EUCPMTA) with SMTP id 6C.A8.12576.271C3A95;\n\tMon, 28 Aug 2017 08:08:34 +0100 (BST)","from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n\teucas1p1.samsung.com (KnoxPortal) with ESMTP id\n\t20170828070834eucas1p1cfcd25d63c00d9b6f8405d05b9d07a43~e8NLe-HUK1267412674eucas1p1f;\n\tMon, 28 Aug 2017 07:08:34 +0000 (GMT)","from eusync3.samsung.com ( [203.254.199.213]) by\n\teusmgms2.samsung.com (EUCPMTA) with SMTP id 11.72.20118.271C3A95;\n\tMon, 28 Aug 2017 08:08:34 +0100 (BST)","from imaximets.rnd.samsung.ru ([106.109.129.180]) by\n\teusync3.samsung.com (Oracle Communications Messaging Server\n\t7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id\n\t<0OVD00194VU62540@eusync3.samsung.com>; \n\tMon, 28 Aug 2017 08:08:34 +0100 (BST)"],"X-Greylist":"domain auto-whitelisted by SQLgrey-1.7.6","X-AuditID":"cbfec7ef-f79ee6d000003120-74-59a3c1722ae1","From":"Ilya Maximets <i.maximets@samsung.com>","To":"ovs-dev@openvswitch.org, Ben Pfaff <blp@ovn.org>","Date":"Mon, 28 Aug 2017 10:08:25 +0300","Message-id":"<1503904105-10475-1-git-send-email-i.maximets@samsung.com>","X-Mailer":"git-send-email 2.7.4","X-Brightmail-Tracker":["H4sIAAAAAAAAA+NgFlrEIsWRmVeSWpSXmKPExsWy7djP87pFBxdHGkzbIW3xanIDo8W0z7fZ\n\tLa60/2S3mPvpOaMDi8ezm/8ZPZ5f62Hx6NuyijGAOYrLJiU1J7MstUjfLoEr4/mUSywFa7kr\n\tJh1ezdLA2MPZxcjJISFgIvH0ezsbhC0mceHeeiCbi0NIYBmjxNdFU9hBEkICnxkl7v5KgWlY\n\tfuEdE1zRlk3TGCGKmpkk9i8uALHZBHQkTq0+AhYXAWpYNvUb2AZmgWCJHeuPgdnCAvYS29um\n\tsXYxcnCwCKhKfDjjBxLmFXCT6NvXzgSxS07i5rlOZpBdEgIb2CSmbrgEVi8hICux6QAzRI2L\n\txKRHl9ghbGGJV8e3QNkyEpcnd7NA9DYzSjSsusQI4UxglPjSvBxqg73EqZtXmSCO45OYtG06\n\tM8QCXomONiGIEg+JU58WM0KEHSXOzDOAeDdW4uyHQ0wTGKUXMDKsYhRJLS3OTU8tNtQrTswt\n\tLs1L10vOz93ECIy50/+Ov9/B+LQ55BCjAAejEg+vhPriSC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wdT5shrl7cosRRnJBpqMRcVJwIAlrgnoksCAAA="],"X-MTR":"20000000000000000@CPGS","X-CMS-MailID":"20170828070834eucas1p1cfcd25d63c00d9b6f8405d05b9d07a43","X-Msg-Generator":"CA","X-Sender-IP":"182.198.249.180","X-Local-Sender":"=?utf-8?q?Ilya_Maximets=1BSRR-Virtualization_Lab=1B?=\n\t=?utf-8?b?7IK87ISx7KCE7J6QG0xlYWRpbmcgRW5naW5lZXI=?=","X-Global-Sender":"=?utf-8?q?Ilya_Maximets=1BSRR-Virtualization_Lab=1BSamsu?=\n\t=?utf-8?q?ng_Electronics=1BLeading_Engineer?=","X-Sender-Code":"=?utf-8?q?C10=1BCISHQ=1BC10GD01GD010154?=","CMS-TYPE":"201P","X-CMS-RootMailID":"20170828070834eucas1p1cfcd25d63c00d9b6f8405d05b9d07a43","X-RootMTR":"20170828070834eucas1p1cfcd25d63c00d9b6f8405d05b9d07a43","References":"<CGME20170828070834eucas1p1cfcd25d63c00d9b6f8405d05b9d07a43@eucas1p1.samsung.com>","X-Spam-Status":"No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,\n\tRP_MATCHES_RCVD autolearn=disabled version=3.3.1","X-Spam-Checker-Version":"SpamAssassin 3.3.1 (2010-03-16) on\n\tsmtp1.linux-foundation.org","Cc":"Ilya Maximets <i.maximets@samsung.com>,\n\tHeetae Ahn <heetae82.ahn@samsung.com>","Subject":"[ovs-dev] [PATCH] timeval: Fix misleading function descriptions.","X-BeenThere":"ovs-dev@openvswitch.org","X-Mailman-Version":"2.1.12","Precedence":"list","List-Id":"<ovs-dev.openvswitch.org>","List-Unsubscribe":"<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>","List-Archive":"<http://mail.openvswitch.org/pipermail/ovs-dev/>","List-Post":"<mailto:ovs-dev@openvswitch.org>","List-Help":"<mailto:ovs-dev-request@openvswitch.org?subject=help>","List-Subscribe":"<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"ovs-dev-bounces@openvswitch.org","Errors-To":"ovs-dev-bounces@openvswitch.org"},"content":"TIME_UPDATE_INTERVAL was removed long time ago.\nNow each call leads to time update via syscall and it's\ngranularity is system dependent.\n\nFixes: 31ef9f5178de (\"timeval: Remove CACHE_TIME scheme.\")\nSigned-off-by: Ilya Maximets <i.maximets@samsung.com>\n---\n lib/timeval.c | 10 ++++------\n 1 file changed, 4 insertions(+), 6 deletions(-)","diff":"diff --git a/lib/timeval.c b/lib/timeval.c\nindex dd63f03..2c7f43a 100644\n--- a/lib/timeval.c\n+++ b/lib/timeval.c\n@@ -171,16 +171,14 @@ time_timespec__(struct clock *c, struct timespec *ts)\n     }\n }\n \n-/* Stores a monotonic timer, accurate within TIME_UPDATE_INTERVAL ms, into\n- * '*ts'. */\n+/* Stores a monotonic timer into '*ts'. */\n void\n time_timespec(struct timespec *ts)\n {\n     time_timespec__(&monotonic_clock, ts);\n }\n \n-/* Stores the current time, accurate within TIME_UPDATE_INTERVAL ms, into\n- * '*ts'. */\n+/* Stores the current time into '*ts'. */\n void\n time_wall_timespec(struct timespec *ts)\n {\n@@ -219,14 +217,14 @@ time_msec__(struct clock *c)\n     return timespec_to_msec(&ts);\n }\n \n-/* Returns a monotonic timer, in ms (within TIME_UPDATE_INTERVAL ms). */\n+/* Returns a monotonic timer, in ms. */\n long long int\n time_msec(void)\n {\n     return time_msec__(&monotonic_clock);\n }\n \n-/* Returns the current time, in ms (within TIME_UPDATE_INTERVAL ms). */\n+/* Returns the current time, in ms. */\n long long int\n time_wall_msec(void)\n {\n","prefixes":["ovs-dev"]}