Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751454AbcCTUrg (ORCPT ); Sun, 20 Mar 2016 16:47:36 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:60223 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbcCTUrb (ORCPT ); Sun, 20 Mar 2016 16:47:31 -0400 Date: Sun, 20 Mar 2016 16:47:28 -0400 (EDT) Message-Id: <20160320.164728.395636107297003956.davem@davemloft.net> To: ruchandani.tina@gmail.com Cc: netdev@vger.kernel.org, arnd@arndb.de, linux-kernel@vger.kernel.org, isdn@linux-pingi.de, y2038@lists.linaro.org Subject: Re: [PATCH v7] isdn: Use ktime_t instead of 'struct timeval' From: David Miller In-Reply-To: <20160319182113.GA2256@tina-laptop> References: <20160319182113.GA2256@tina-laptop> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 20 Mar 2016 13:47:29 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 702 Lines: 15 From: Tina Ruchandani Date: Sat, 19 Mar 2016 11:21:14 -0700 > 'struct timeval' uses 32-bit representation for seconds which will > overflow in year 2038 and beyond. mISDN/clock.c needs to compute and > store elapsed time in intervals of 125 microseconds. This patch replaces > the usage of 'struct timeval' with 64-bit ktime_t which is y2038 safe. > The patch also replaces do_gettimeofday() (wall-clock time) with > ktime_get() (monotonic time) since we only care about elapsed time here. > > Signed-off-by: Tina Ruchandani > Suggested-by: Arnd Bergmnann > Suggested-by: David Miller Applied, thank you.