summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorBoqun Feng <boqun.feng@gmail.com>2015-07-02 22:25:52 +0800
committerIngo Molnar <mingo@kernel.org>2015-07-07 08:46:10 +0200
commit8e2b0bf397279878babcb39b021edcafe7c945eb (patch)
tree95d0defdbf80dcc15af360cf623c4088fa9e03c4 /tools/perf/scripts/python/export-to-postgresql.py
parent44dcb04f0ea8eaac3b9c9d3172416efc5a950214 (diff)
sched/fair: Clean up the __sched_period() code
Since commit: 4bf0b77158 ("sched: remove do_div() from __sched_slice()") ... the logic of __sched_period() can be implemented as a single if-else without any local variables, so this patch cleans it up with an if-else statement, which expresses the function's logic straightforwardly. Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1435847152-29543-1-git-send-email-boqun.feng@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions