summaryrefslogtreecommitdiff
path: root/tools/lib/python/__init__.py
diff options
context:
space:
mode:
authorSang-Heon Jeon <ekffu200098@gmail.com>2026-09-27 18:17:54 +0900
committerPetr Mladek <pmladek@suse.com>2026-09-29 16:52:45 +0200
commitae30792e536c80aed87fb11ec9140e55ed99da09 (patch)
tree6ec8f4ddaced93ab03a673d02b786b32d9109531 /tools/lib/python/__init__.py
parent267f1127c0f4035448acc6f2c3321eb38e54eecc (diff)
downloadlinux-next-ae30792e536c80aed87fb11ec9140e55ed99da09.tar.gz
linux-next-ae30792e536c80aed87fb11ec9140e55ed99da09.zip
printk: increase the ring buffer for more than 16 CPUs by default
The default LOG_BUF_SHIFT is 17, which means 128 KB, and LOG_CPU_MAX_BUF_SHIFT is 12, which means 4 KB per CPU. By default the ring buffer is increased when (num_possible_cpus() - 1) * 4 KB > 64 KB, which requires more than 17 CPUs. Remove the explicit subtraction of one, so the ring buffer is increased for more than 16 CPUs, which is a power of two. Also fix the outdated comment. Suggested-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Reviewed-by: John Ogness <john.ogness@linutronix.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://patch.msgid.link/20260927091756.50831-1-ekffu200098@gmail.com Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'tools/lib/python/__init__.py')
0 files changed, 0 insertions, 0 deletions