ktime.h: Introduce ktime_ms_delta
authorChunyan Zhang <zhang.chunyan@linaro.org>
Wed, 17 Dec 2014 05:11:35 +0000 (13:11 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 Jan 2015 10:47:15 +0000 (11:47 +0100)
commit41fbf3b39d5eca01527338b4d0ee15ee1ae1023c
treefadcc3cc42eda258a31ec7d880f259d79f21063a
parentec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc
ktime.h: Introduce ktime_ms_delta

This patch adds a reusable time difference function which returns the
difference in millisecond, as often used in some driver code, e.g.
mtd/test, media/rc, etc.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Acked-by: Arnd Bergmann <arnd@linaro.org>
Cc: zhang.lyra@gmail.com
Cc: davem@davemloft.net
Cc: john.stultz@linaro.org
Cc: dborkman@redhat.com
Link: http://lkml.kernel.org/r/1418793095-18780-1-git-send-email-zhang.chunyan@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/ktime.h