From nobody Mon Apr 6 10:43:31 2026 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 379023E714D for ; Thu, 19 Mar 2026 15:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773934745; cv=none; b=kJb6RxJXrWF0medD3f72obgbZ6TovOzVUXrqaveoqb5JvtmuFjRGsjJOE+RdqZPslOytXlv2oml59Nwe17wPACd8jKE1qWc/iEuzJxOljMykromtkLjFPl5BbE1Rr7b4A0IRR2g3WEBE/hU+CLSHlpkpegbjQzvJNDe12x4LZdQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773934745; c=relaxed/simple; bh=BducJre5dIvWUwqIuXg2VZYe2Xl4IFaR4KGdZYCz85Y=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=C1i1lHpDxXIGt9VeR2IdnwdqMfz99B75L98hKirhnF7IWjpPAvJGx4OMtAxSpI9+eOzoIMaWQporC/wMiWOd6ZOqk36fENa8nM+Ydmkf1HHj8PmjhhFKHV8iO6rjte7sCjLa2ogIoEixgLZLA2dt0lkfy6Fq93ZNaow1iP6tVx4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=ElpFaWiv; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ElpFaWiv" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5a27a90a7b6so1265574e87.1 for ; Thu, 19 Mar 2026 08:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1773934740; x=1774539540; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=1bCGX/ouIFX/0r7IDQvkvFcVLJ3SRfiz7ptJfb2y+lc=; b=ElpFaWiveGbwlSCq9lWl5GgNDWEgnAOcaSHcVYDurQbB0M2Tme4LxBopjR7SO3TKpS buYjMEsl3E1nQeEmbtrF0Umw1MbtvMx4L0/oqr1JC+V08FicyYiHZTPb0DCH9ZekfYEX WCH9O8LssRuUuvCjiSynhDalrji5n52rAAiyE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773934740; x=1774539540; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1bCGX/ouIFX/0r7IDQvkvFcVLJ3SRfiz7ptJfb2y+lc=; b=WW94+HeEVntV7CU3SmucuLQhRhUoZqzPua7NynGspz0k23s5R8Io50o7hODm4q7OBx 3i7ra9qxAum40MRmhOFlqWhumPvb+5Fd0Cl/G8im0w5xh8hHcmxE1QJssc4YC2yRtelt QST7mGKfXfxvcWVfPzixqDM/NpzX/C0f33WmZL9FnKNP95E7izj7amO2DwbcF5R+M2Dk xEMFZvfA5FRm9VjnLISlJZirTiN3K8pMOQxZ4Ku7vCdYWvEUrLqP41xPLZXb13mLjTwL CadJBrBYrAdE3DwPIvgDDIJlJUuDZLPVre4JQ4vI74IeAzEi6PSkWa8eoylNz7TuygNP Em3w== X-Forwarded-Encrypted: i=1; AJvYcCXKcj8RdPChwLqKTc5AjrAbn0ARtLtHBbMq9BaykD+yDGxwyLHFiQVqHfmQxex+JjJyiJkAgVZTsXXg2NI=@vger.kernel.org X-Gm-Message-State: AOJu0Yx5PZaJFL20Pi7m36VW6Jdn/wsF0Ko/ZI5qFGjkNOxtLREqBtlQ XM5d1MwFSSPxzxFOxpBISXw/jcx3EI+BW+bny7P9huF+UkJ8GppQ8iGqFD8lWzxuqw== X-Gm-Gg: ATEYQzzemfNFiCelP4IyM7c/beYWk6xdxvluDfnkYRu7+YARI0gT/VuT9dBUt7hrV7g eOXl74dUpp6IxMJvuWeBX0SWDbfRWt+Tdw6oXFoujZWglYDBW1Y9mwxZGawrL7a/YrleHK6kkrS zOsh/dreZpn9Q54LymKZAxJmQ7hU0MhzJjoYOqsbejEa9UQSo7QWcjXSKax1MSXj6Va3jepUzPL fmKoZRgjFNbbfmkd4s5hZFCmjeiuc+Z7Lb2BMFLzzrHiTpQRhq2/w7D1DNyoSsjwI9wC34DhOSv e/OUBVnx3VDInW0k15ULXVJ578qkU31AIUXKQtzwmMeiRYn4y30XOq4h0/TixQEcurAjleU2p5S 9JlmkoXgUJ+v8oaj6Kmm5wScIqk+4/zqR2nv04fVkEiv8K6zTa+Hyf+JMvl6VSJlSDaOWTW46gH z5It1KlNleFRcTiq8N9k4oCZjRMQuxmu2q5y5hXtNa1vM= X-Received: by 2002:a19:c207:0:b0:5a1:d0d:1ba9 with SMTP id 2adb3069b0e04-5a27959cde1mr2020086e87.7.1773934740184; Thu, 19 Mar 2026 08:39:00 -0700 (PDT) Received: from dmaluka1.corp.google.com ([2a00:79e1:abd:1300:d347:f02a:266b:b67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a279c3025bsm1253728e87.34.2026.03.19.08.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2026 08:38:59 -0700 (PDT) From: Dmytro Maluka To: Shuah Khan , Jihed Chaibi , Dmytro Maluka , linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] selftests/cpu-hotplug: Fix check for cpu hotplug not supported Date: Thu, 19 Mar 2026 16:38:12 +0100 Message-ID: <20260319153825.2813576-1-dmaluka@chromium.org> X-Mailer: git-send-email 2.53.0.851.ga537e3e6e9-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" If CONFIG_HOTPLUG_CPU is disabled, /sys/devices/system/cpu/cpu* directories are still populated, so the test fails to correctly detect that CPU hotplug is not supported. Fix this by checking for the presence of 'online' files in those directories instead. The 'online' node is created for the given CPU if and only if this CPU supports hotplug. So if none of the CPUs have 'online' nodes, it means CPU hotplug is not supported. Signed-off-by: Dmytro Maluka --- tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh b/tools= /testing/selftests/cpu-hotplug/cpu-on-off-test.sh index 6232a46ca6e1..287cfd5809f6 100755 --- a/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh +++ b/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh @@ -24,7 +24,7 @@ prerequisite() exit $ksft_skip fi =20 - if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then + if ! ls $SYSFS/devices/system/cpu/cpu*/online > /dev/null 2>&1; then echo $msg cpu hotplug is not supported >&2 exit $ksft_skip fi --=20 2.53.0.851.ga537e3e6e9-goog