Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1253774

Re: [Y2038] [PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [Y2038] [PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t
Date 2015-10-22 14:50 +0200
Message-ID <qmntE-2GJ-13@gated-at.bofh.it> (permalink)
References <qmntE-2GJ-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thursday 22 October 2015 18:15:50 Amitoj Kaur Chawla wrote:
> This driver uses 'struct timeval' which we are trying to remove since
> 32 bit time types will break in the year 2038 by replacing it with
> ktime_t.
> 
> This patch changes do_gettimeofday() to ktime_get() because
> ktime_get() returns a ktime_t while do_gettimeofday() returns struct
> timeval.
> 
> This patch also uses ktime_us_delta() to get the elapsed time.
> 
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
> 

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t Amitoj Kaur Chawla <amitoj1606@gmail.com> - 2015-10-22 14:50 +0200
  Re: [Y2038] [PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t Arnd Bergmann <arnd@arndb.de> - 2015-10-22 14:50 +0200

csiph-web