]> git.karo-electronics.de Git - karo-tx-linux.git/commit
posix_cpu_timer: consolidate expiry time type
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 26 Mar 2013 23:24:09 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 2 Apr 2013 07:28:53 +0000 (18:28 +1100)
commit6a69116c2410272f36ecca18e16dc90b831fb2c2
treed1c379b8ee2ed3f14fd213df067f07eb4d135bac
parent646c8dfa174b092ef73473911f3c482223bf8f55
posix_cpu_timer: consolidate expiry time type

The posix cpu timer expiry time is stored in a union of two types: a 64
bits field if we rely on scheduler precise accounting, or a cputime_t if
we rely on jiffies.

This results in quite some duplicate code and special cases to handle the
two types.

Just unify this into a single 64 bits field.  cputime_t can always fit
into it.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/posix-timers.h
kernel/posix-cpu-timers.c