From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralf Baechle Subject: Re: [PATCH V2 12/12] MIPS: Loongson: Make CPUFreq usable for Loongson-3 Date: Tue, 11 Nov 2014 12:07:02 +0100 Message-ID: <20141111110702.GA28822@linux-mips.org> References: <1415081928-25899-1-git-send-email-chenhc@lemote.com> <20141111105748.GK27259@linux-mips.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Huacai Chen Cc: John Crispin , "Steven J. Hill" , Linux MIPS Mailing List , linux-pm@vger.kernel.org, Fuxin Zhang , Zhangjin Wu , Hongliang Tao List-Id: linux-pm@vger.kernel.org On Tue, Nov 11, 2014 at 07:02:48PM +0800, Huacai Chen wrote: > Loops_per_jiffy is set on startup and doesn't change later. It reflect > the maximum value frequency, but for CPU hotplug, a new online CPU may > not run at the maximum frequency (remain the old value before it is > offline). As suspected. But what if a CPU is hotunplugged, then the clockrate for all the CPUs changes and then the gets re-hotplugged into the system. Wouldn't in that case the udelay_val be used? Ralf