Commit a54dbd9e authored by Cheng Yu's avatar Cheng Yu
Browse files

sched/topology: Remove SCHED_STEAL_NODE_LIMIT_DEFAULT

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IAQWPQ



-----------------------------------------

The sched_steal_node_limit parameter in cmdline is used to configure the
number of numa nodes to enable the steal task feature. That is, if the
configured value is less than the actual number of numa nodes, the
feature will not be enabled. In a system with 2 numa nodes, there is no
need to configure this parameter. Now we remove the default value 2 and
directly obtain the actual number of numa nodes in the system.

Signed-off-by: default avatarCheng Yu <serein.chengyu@huawei.com>
parent b7772972
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1885,7 +1885,6 @@ static void init_numa_topology_type(void)
#ifdef CONFIG_SCHED_STEAL
DEFINE_STATIC_KEY_TRUE(sched_steal_allow);
static int sched_steal_node_limit;
#define SCHED_STEAL_NODE_LIMIT_DEFAULT 2

static int __init steal_node_limit_setup(char *buf)
{
@@ -1900,7 +1899,7 @@ static void check_node_limit(void)
	int n = num_possible_nodes();

	if (sched_steal_node_limit == 0)
		sched_steal_node_limit = SCHED_STEAL_NODE_LIMIT_DEFAULT;
		sched_steal_node_limit = n;
	if (n > sched_steal_node_limit) {
		static_branch_disable(&sched_steal_allow);
		pr_debug("Suppressing sched STEAL. To enable, reboot with sched_steal_node_limit=%d", n);