summaryrefslogtreecommitdiff
path: root/arch/h8300/lib/moddivsi3.S
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2017-09-05 14:16:28 +0200
committerIngo Molnar <mingo@kernel.org>2017-10-27 10:31:59 +0200
commit0d3d73aac2ff05c78387aa9dcc2c8aa3804405e7 (patch)
tree829a0fcdecec3ba45aac39380fdc8e31acfc286a /arch/h8300/lib/moddivsi3.S
parent0c1cbc18df9e38182a0604b15535699c84d7342a (diff)
perf/core: Rewrite event timekeeping
The current even timekeeping, which computes enabled and running times, uses 3 distinct timestamps to reflect the various event states: OFF (stopped), INACTIVE (enabled) and ACTIVE (running). Furthermore, the update rules are such that even INACTIVE events need their timestamps updated. This is undesirable because we'd like to not touch INACTIVE events if at all possible, this makes event scheduling (much) more expensive than needed. Rewrite the timekeeping to directly use event->state, this greatly simplifies the code and results in only having to update things when we change state, or an up-to-date value is requested (read). Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/h8300/lib/moddivsi3.S')
0 files changed, 0 insertions, 0 deletions