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


Groups > linux.kernel > #1261722 > unrolled thread

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

Started byDavid Miller <davem@davemloft.net>
First post2015-11-03 18:00 +0100
Last post2015-11-03 18:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t David Miller <davem@davemloft.net> - 2015-11-03 18:00 +0100

#1261722 — Re: [PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t

FromDavid Miller <davem@davemloft.net>
Date2015-11-03 18:00 +0100
SubjectRe: [PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t
Message-ID<qqN6a-5mL-7@gated-at.bofh.it>
From: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Date: Thu, 22 Oct 2015 18:15:50 +0530

> 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>
> ---
> Changes in v2:
>         -Modified subject of commit message

Applied, thanks.
--
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/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web