From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 11 Nov 2014 12:07:05 +0100 (CET) Received: from localhost.localdomain ([127.0.0.1]:57827 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S27013363AbaKKLHD5i8vF (ORCPT ); Tue, 11 Nov 2014 12:07:03 +0100 Received: from scotty.linux-mips.net (localhost.localdomain [127.0.0.1]) by scotty.linux-mips.net (8.14.8/8.14.8) with ESMTP id sABB72HB029408; Tue, 11 Nov 2014 12:07:02 +0100 Received: (from ralf@localhost) by scotty.linux-mips.net (8.14.8/8.14.8/Submit) id sABB72tp029407; Tue, 11 Nov 2014 12:07:02 +0100 Date: Tue, 11 Nov 2014 12:07:02 +0100 From: Ralf Baechle To: Huacai Chen Cc: John Crispin , "Steven J. Hill" , Linux MIPS Mailing List , linux-pm@vger.kernel.org, Fuxin Zhang , Zhangjin Wu , Hongliang Tao Subject: Re: [PATCH V2 12/12] MIPS: Loongson: Make CPUFreq usable for Loongson-3 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 43991 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips 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