]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
init/Kconfig: Fix CPU number in LOG_CPU_MAX_BUF_SHIFT description
authorPaul Menzel <pmenzel@molgen.mpg.de>
Tue, 11 Aug 2020 09:29:23 +0000 (11:29 +0200)
committerPetr Mladek <pmladek@suse.com>
Tue, 3 Nov 2020 08:34:40 +0000 (09:34 +0100)
Currently, LOG_BUF_SHIFT defaults to 17, which is 2 ^ 17 bytes = 128 KB,
and LOG_CPU_MAX_BUF_SHIFT defaults to 12, which is 2 ^ 12 bytes = 4 KB.

Half of 128 KB is 64 KB, so more than 16 CPUs are required for the value
to be used, as then the sum of contributions is greater than 64 KB for
the first time. My guess is, that the description was written with the
configuration values used in the SUSE in mind.

Fixes: 23b2899f7f194f06e ("printk: allow increasing the ring buffer depending on the number of CPUs")
Cc: Luis R. Rodriguez <mcgrof@suse.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200811092924.6256-1-pmenzel@molgen.mpg.de
init/Kconfig

index c9446911cf41e8bb3d3a03ccc19b5f2dfe27e8ac..02d13ae27abb907972e8446387decb72c782d7df 100644 (file)
@@ -719,7 +719,7 @@ config LOG_CPU_MAX_BUF_SHIFT
          with more CPUs. Therefore this value is used only when the sum of
          contributions is greater than the half of the default kernel ring
          buffer as defined by LOG_BUF_SHIFT. The default values are set
-         so that more than 64 CPUs are needed to trigger the allocation.
+         so that more than 16 CPUs are needed to trigger the allocation.
 
          Also this option is ignored when "log_buf_len" kernel parameter is
          used as it forces an exact (power of two) size of the ring buffer.