From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pz2-f1.google.com (mail-pz2-f1.google.com [74.125.228.1]) (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 9ABEA3FD943 for ; Mon, 6 Jul 2026 14:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783348772; cv=none; b=eU2Gd0FBS4T0kPa+aQr+9aTg9V7LkwpufkhkumQTIcEjfWW+pWQ6fQedbXhDE3bA99p0rQFMsKy0PlpORZCQ+z9X3sCYjRpqE2Wvhpfl2Nd8c38IEHr0koHnhVLA8uEDp3uUxKw78vShCIfD2opc5eWop2yq3MeNDeVYp9X1wPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783348772; c=relaxed/simple; bh=weOOepSSbnlZ9cU7469mPWDgr3/c5R/3kbdpRpOlCsE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BrZb6stpwLgVF8eF4Ym3wtG4ip7579S9ASeE83gwk6YTsvJgpQjbERVATsGezntSKOIOa2R2HjaY0/3vtvUqXOhaJp/CyoWJBlcJ/dksdzS8PjsIzENdD4g61ft0fgrIO1HXGAoyiY2huCJJ4wqyiqKl4W2wohdb4OOoS+UbSbw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=oHnewAR/; arc=none smtp.client-ip=74.125.228.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oHnewAR/" Received: by mail-pz2-f1.google.com with SMTP id 41be03b00d2f7-c9fcd903839so417307a12.1 for ; Mon, 06 Jul 2026 07:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783348771; x=1783953571; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=0RsAcv5tiOY8uhd8nVRG0fQgmp1hsWD9e8k/xi4zwdo=; b=oHnewAR/FwoVZL5sRjQvPah+HmBy5UUc8qSdGs3O7ulranoxHoOswqKG++sxOZjUuc 7r0YAZDDZDx3foVuwKF0mfFoIpsluCLRH86klsVl2CE0jTY5Ne2t1n84QqY+p+f/xsdc dF5SR/TcV5T0znv4zbtWH0XpExAidKcGGkSf2rOCR+4ycUpfwAbm52Db9ojDw0SvlZnZ vH9jzR5ErCwzIRLvPcjPDZYms4XFbDZUlVDY67vF79CSeLG94yUXSIQu1f0czjKXQat0 zY0jeJ4nLKNqX4eC53la9vRLcNOVV2XOJ8ZwNPFTGuk2H86TLJa/ouhZUWE13kzVWzw5 4loA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783348771; x=1783953571; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=0RsAcv5tiOY8uhd8nVRG0fQgmp1hsWD9e8k/xi4zwdo=; b=qEeUmWZIYLPDbED5qQypUPaqvY7DkfvZHIErHDYYTnn5setX31e0wKQiEg+AAu/jWF M+v25oJz4Mh6hGPLNnXe9J+TOhYAZ87AT8cQcA6TBZmV8zzHmG4H8gielX/OS/PNcAYf EKPJAsTDZPs3PWNFA2wIN0n/yX2cH5QZVeSJO8EpDbGxlgn7BJMk4lfhhrBtBAysY/SC BEUfmmSmlUGrApu05fGGZSSewFEmJmhZBG6Vj4LRRInSgInNzmbGktq241gSALGig7sl xkXw8q/ycf+sop4IIr5VlAx6Cf2HTEVb23kdGUQTqlSc8BWSWF6fR0JlC57GwfplrUVz gyzA== X-Gm-Message-State: AOJu0Yyv1QEorKQ8Qi8KKTA38EHnkF5eCla9FeSxmgmQ0onlmpyRsGbv gL12p1nG3p7ddic45l6eW+Y7QlkBZFXmtsYLka90a+HN8g04exX58VXho6WIiDMPghkQ X-Gm-Gg: AfdE7cmSBIgKuOwPxW44kccAhejX99TzM6E9wR3gRN+U3gdsgdq4c2MvculRPgf9ubA Y2D2YX36gi3QTZ3sPpmrQS87miNNc3zaUSCjtQ2bv8SUDVdMHPl7e2pUYCAhmnvLMybncZnYQ35 qDuVLv/a4jiJQm/ZRZM3DZ1rRb426d1nK0zPrasNZxV2/4pK93zFNTlf3uPAdeSeTyvjwbYDdBJ BCVbnQWb8hw4woT91RVzbeFIIHMw4INegdAr4d7M6DGx2wsW7iot08nHTgtG89cSSwA58ktBXCL V6fo7VwQiD+gElLMPHFBWGRtomOTI/ltNvk4tMH9ySF/hTOKzvCcWqCr7Dekwz8aOpM912zwtza a7L7CUmwhtYB4pewDesARpGYWEgMiofu8tmW5tgzjYs2NOy86wQlcD8s4+8llx5X8MSIjypxK57 qcHeDgUcXul16EVTmWr28SMwn0Tf4LcsLqx35VdMUHpICD X-Received: by 2002:a05:6a00:8c8:b0:847:7cf0:347c with SMTP id d2e1a72fcca58-84826f0e8aemr813327b3a.46.1783348770852; Mon, 06 Jul 2026 07:39:30 -0700 (PDT) Received: from localhost.localdomain ([211.196.223.197]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847f6b609acsm3858991b3a.1.2026.07.06.07.39.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 07:39:30 -0700 (PDT) From: Jinseok Kim To: rafael@kernel.org, viresh.kumar@linaro.org, shuah@kernel.org Cc: linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] selftests/cpufreq: Remove unnecessary sudo from quick_shuffle() Date: Mon, 6 Jul 2026 23:38:54 +0900 Message-ID: <20260706143857.3306-2-always.starving0@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260706143857.3306-1-always.starving0@gmail.com> References: <20260706143857.3306-1-always.starving0@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The cpufreq selftests are always executed through main.sh, which verifies that the test is run as root before dispatching any test case. Therefore, invoking sudo inside quick_shuffle() is redundant and may cause failures in environments where sudo is unavailable. Signed-off-by: Jinseok Kim --- tools/testing/selftests/cpufreq/special-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/cpufreq/special-tests.sh b/tools/testing/selftests/cpufreq/special-tests.sh index 8d40505dc468..f45eb525f3b1 100755 --- a/tools/testing/selftests/cpufreq/special-tests.sh +++ b/tools/testing/selftests/cpufreq/special-tests.sh @@ -65,8 +65,8 @@ quick_shuffle() # this is called concurrently from governor_race for I in `seq 1000` do - echo ondemand | sudo tee $CPUFREQROOT/policy*/scaling_governor & - echo userspace | sudo tee $CPUFREQROOT/policy*/scaling_governor & + echo ondemand | tee $CPUFREQROOT/policy*/scaling_governor & + echo userspace | tee $CPUFREQROOT/policy*/scaling_governor & done } -- 2.43.0