]> git.karo-electronics.de Git - karo-tx-linux.git/commit
posix_cpu_timer: consolidate expiry time type
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 27 Jun 2013 23:50:57 +0000 (09:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:13 +0000 (16:37 +1000)
commitfacbf035405c9ea16b20787e69d59984ec9c1d37
tree2a811e885b9aa6464ea00617ae959f65ed711f59
parent7bbd6e5c4f2686c3cc39bf4f2f78ddbd63f7a00f
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