Commit [c67632] Maximize Restore History

sched_clock: Add local_clock() API and improve documentation

For people who otherwise get to write: cpu_clock(smp_processor_id()),
there is now: local_clock().

Also, as per suggestion from Andrew, provide some documentation on
the various clock interfaces, and minimize the unsigned long long vs
u64 mess.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Jens Axboe <jaxboe@fusionio.com>
LKML-Reference: <1275052414.1645.52.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Peter Zijlstra Peter Zijlstra 2010-05-25

Ingo Molnar Ingo Molnar 2010-06-09

changed arch/parisc/kernel/ftrace.c
changed include/linux/sched.h
changed kernel/trace/trace_clock.c
changed kernel/lockdep.c
changed kernel/perf_event.c
changed kernel/rcutorture.c
changed kernel/sched.c
changed kernel/sched_clock.c
arch/parisc/kernel/ftrace.c Diff Switch to side-by-side view
Loading...
include/linux/sched.h Diff Switch to side-by-side view
Loading...
kernel/trace/trace_clock.c Diff Switch to side-by-side view
Loading...
kernel/lockdep.c Diff Switch to side-by-side view
Loading...
kernel/perf_event.c Diff Switch to side-by-side view
Loading...
kernel/rcutorture.c Diff Switch to side-by-side view
Loading...
kernel/sched.c Diff Switch to side-by-side view
Loading...
kernel/sched_clock.c Diff Switch to side-by-side view
Loading...