aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorDouglas Anderson <[email protected]>2020-05-07 23:11:46 +0000
committerDaniel Thompson <[email protected]>2020-06-02 14:15:46 +0000
commit1b310030bb855b9b13d1c0a9feffdb54883b06ab (patch)
tree83c8710aa1c85c2cbb79ac3dfea06fe1a09fc2bc /tools/perf/scripts/python/sched-migration.py
parentserial: amba-pl011: Support kgdboc_earlycon (diff)
downloadkernel-1b310030bb855b9b13d1c0a9feffdb54883b06ab.tar.gz
kernel-1b310030bb855b9b13d1c0a9feffdb54883b06ab.zip
kdb: Cleanup math with KDB_CMD_HISTORY_COUNT
From code inspection the math in handle_ctrl_cmd() looks super sketchy because it subjects -1 from cmdptr and then does a "% KDB_CMD_HISTORY_COUNT". It turns out that this code works because "cmdptr" is unsigned and KDB_CMD_HISTORY_COUNT is a nice power of 2. Let's make this a little less sketchy. This patch should be a no-op. Signed-off-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/20200507161125.1.I2cce9ac66e141230c3644b8174b6c15d4e769232@changeid Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Daniel Thompson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions