]> 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>
Thu, 4 Apr 2013 06:04:10 +0000 (17:04 +1100)
commit6d0e0255006d9646a44ca43f9a3803f5d888af54
tree02daf86987de16985465cb9fae85e91db1f8af30
parent9e7e6d3b3b3b0f99f32c044ef02053f4fa2a41ae
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