From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 703FD1D5AB2; Mon, 10 Mar 2025 10:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741601996; cv=none; b=Yw8znpodFjd1WPxsmsRrQn707kGgYGPkFVmWx1yXVLpoF424EvGH95tWFplf32GAw/v5Tev0rbhhPlo+oHcyJXY8QQp1ZxZ5u2zKD1WW/8XltJGRgPdvJeH0PwysMFMd/LuiqD8meYzF+jXHWV3v53L1yuJ1NG5cnX+CSEnwNic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741601996; c=relaxed/simple; bh=100GLxY3vbQfixL5KlFRnqxcfqt31VUMXg8446EaDyI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TOuPHlJ5cPeLAsvtxsuwQeiISdGtwQ9BZyRMsgwO1k8NGQJbJ0K+74EvT/gDmaNm30oIqhwAVE5FYy3bnJo+5SmQk2Mi83ClYqd3tpln3BYJAQ+YMEGbcK7JZX9EAy8Wm8DEydF9hMY2kLEhclxFL3WwMaQ0od2m3KGrVbvDVI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5103C153B; Mon, 10 Mar 2025 03:20:05 -0700 (PDT) Received: from bogus (e133711.arm.com [10.1.196.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0A2573F673; Mon, 10 Mar 2025 03:19:50 -0700 (PDT) Date: Mon, 10 Mar 2025 10:19:48 +0000 From: Sudeep Holla To: Jacky Bai Cc: , , , Sudeep Holla , , , , , , , , , , , , Subject: Re: [PATCH] cpufreq: Init cpufreq only for present CPUs Message-ID: References: <20250310071640.3140435-1-ping.bai@nxp.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250310071640.3140435-1-ping.bai@nxp.com> On Mon, Mar 10, 2025 at 03:16:40PM +0800, Jacky Bai wrote: > for_each_possible_cpu() is currently used to initialize cpufreq > in below cpufreq drivers: > drivers/cpufreq/cpufreq-dt.c > drivers/cpufreq/mediatek-cpufreq-hw.c > drivers/cpufreq/mediatek-cpufreq.c > drivers/cpufreq/qcom-cpufreq-nvmem.c > drivers/cpufreq/sun50i-cpufreq-nvmem.c > Again how did you just narrow down to the list above ? Is that just a random pick ? As I suggested with corresponding cpuidle changes, please look into the details in side the for_each_possible_cpu() loop and then decide if it applies or not. For me, it applied to the below files as well at the least. drivers/cpufreq/mvebu-cpufreq.c drivers/cpufreq/qcom-cpufreq-hw.c drivers/cpufreq/scmi-cpufreq.c drivers/cpufreq/scpi-cpufreq.c drivers/cpufreq/virtual-cpufreq.c Please check everything thoroughly as I just looked at these briefly. -- Regards, Sudeep