summaryrefslogtreecommitdiff
path: root/mm/mempool.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-02-18 05:18:32 +0300
committerZhang Rui <rui.zhang@intel.com>2015-02-28 08:52:47 +0300
commit3bbcc529ee7f1d5807f3fe84cfdbdd1599530ad0 (patch)
tree932cc06e37f926bdee56b47880f38ef1aa20ecca /mm/mempool.c
parent0e7b766dc0aeedd47c8264242e06f3a470f5d589 (diff)
downloadlinux-3bbcc529ee7f1d5807f3fe84cfdbdd1599530ad0.tar.xz
tools/thermal: tmon: fixup tui windowing calculations
The number of rows in the dialog vary according to the number of cooling devices. However, some of the windowing computations were assuming a fixed number of rows. This computation is OK when we have between 4 and 9 cooling devices (and they wrap to the next column), but with fewer devices, we end up printing off the end of the window. This unifies the row computation into a single function and uses that throughout the TUI code. This also accounts for increasing the number of rows when there are more than 9 total cooling devices. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'mm/mempool.c')
0 files changed, 0 insertions, 0 deletions