]> git.baikalelectronics.ru Git - kernel.git/commit
select: add a timespec_add_safe() function
authorThomas Gleixner <tglx@linutronix.de>
Sun, 31 Aug 2008 15:09:53 +0000 (08:09 -0700)
committerArjan van de Ven <arjan@linux.intel.com>
Sat, 6 Sep 2008 04:34:57 +0000 (21:34 -0700)
commitf5417f0404084e07706667acdb5b85c172baa368
tree2ba23487a2a6c37cfdcd1f5c9edb31a5e0b0df22
parentb6d38c10701bf367e711d9708986df6dbbb67327
select: add a timespec_add_safe() function

For the select() rework, it's important to be able to add timespec
structures in an overflow-safe manner.

This patch adds a timespec_add_safe() function for this which is similar in
operation to ktime_add_safe(), but works on a struct timespec.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
include/linux/time.h
kernel/time.c