@@ -949,52 +949,66 @@ config MAXSMP
949
949
Enable maximum number of CPUS and NUMA Nodes for this architecture.
950
950
If unsure, say N.
951
951
952
- config RANGE_END_CPUS
952
+ #
953
+ # The maximum number of CPUs supported:
954
+ #
955
+ # The main config value is NR_CPUS, which defaults to NR_CPUS_DEFAULT,
956
+ # and which can be configured interactively in the
957
+ # [NR_CPUS_RANGE_BEGIN ... NR_CPUS_RANGE_END] range.
958
+ #
959
+ # The ranges are different on 32-bit and 64-bit kernels, depending on
960
+ # hardware capabilities and scalability features of the kernel.
961
+ #
962
+ # ( If MAXSMP is enabled we just use the highest possible value and disable
963
+ # interactive configuration. )
964
+ #
965
+
966
+ config NR_CPUS_RANGE_BEGIN
953
967
int
954
- depends on X86_32
955
- default 8 if SMP && !X86_BIGSMP
956
- default 64 if SMP && X86_BIGSMP
957
- default 1 if !SMP
968
+ default NR_CPUS_RANGE_END if MAXSMP
969
+ default 1 if !SMP
970
+ default 2
958
971
959
- config RANGE_END_CPUS
972
+ config NR_CPUS_RANGE_END
960
973
int
961
- depends on X86_64
962
- default 512 if SMP && !MAXSMP && !CPUMASK_OFFSTACK
963
- default 8192 if SMP && (MAXSMP || CPUMASK_OFFSTACK)
964
- default 1 if !SMP
974
+ depends on X86_32
975
+ default 64 if SMP && X86_BIGSMP
976
+ default 8 if SMP && !X86_BIGSMP
977
+ default 1 if !SMP
965
978
966
- config RANGE_BEGIN_CPUS
979
+ config NR_CPUS_RANGE_END
967
980
int
968
- default 1 if !SMP
969
- default RANGE_END_CPUS if MAXSMP
970
- default 2
981
+ depends on X86_64
982
+ default 8192 if SMP && ( MAXSMP || CPUMASK_OFFSTACK)
983
+ default 512 if SMP && (!MAXSMP && !CPUMASK_OFFSTACK)
984
+ default 1 if !SMP
971
985
972
- config DEF_CONFIG_CPUS
986
+ config NR_CPUS_DEFAULT
973
987
int
974
988
depends on X86_32
975
- default 1 if !SMP
976
- default 32 if X86_BIGSMP
977
- default 8 if SMP
989
+ default 32 if X86_BIGSMP
990
+ default 8 if SMP
991
+ default 1 if ! SMP
978
992
979
- config DEF_CONFIG_CPUS
993
+ config NR_CPUS_DEFAULT
980
994
int
981
995
depends on X86_64
982
- default 1 if !SMP
983
- default 8192 if MAXSMP
984
- default 64 if SMP
996
+ default 8192 if MAXSMP
997
+ default 64 if SMP
998
+ default 1 if ! SMP
985
999
986
1000
config NR_CPUS
987
1001
int "Maximum number of CPUs" if SMP && !MAXSMP
988
- range RANGE_BEGIN_CPUS RANGE_END_CPUS
989
- default DEF_CONFIG_CPUS
1002
+ range NR_CPUS_RANGE_BEGIN NR_CPUS_RANGE_END
1003
+ default NR_CPUS_DEFAULT
990
1004
---help---
991
1005
This allows you to specify the maximum number of CPUs which this
992
1006
kernel will support. If CPUMASK_OFFSTACK is enabled, the maximum
993
1007
supported value is 8192, otherwise the maximum value is 512. The
994
1008
minimum value which makes sense is 2.
995
1009
996
- This is purely to save memory - each supported CPU adds
997
- approximately eight kilobytes to the kernel image.
1010
+ This is purely to save memory: each supported CPU adds about 8KB
1011
+ to the kernel image.
998
1012
999
1013
config SCHED_SMT
1000
1014
bool "SMT (Hyperthreading) scheduler support"
0 commit comments