Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756549AbaLIKgt (ORCPT ); Tue, 9 Dec 2014 05:36:49 -0500 Received: from mail-oi0-f44.google.com ([209.85.218.44]:43713 "EHLO mail-oi0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755114AbaLIKgr (ORCPT ); Tue, 9 Dec 2014 05:36:47 -0500 MIME-Version: 1.0 In-Reply-To: <20141209103249.GB2891@e104805> References: <1417806260-9264-1-git-send-email-javi.merino@arm.com> <1417806260-9264-7-git-send-email-javi.merino@arm.com> <20141208125033.GB2980@e104805> <20141208142217.GA1831@e104805> <20141209103249.GB2891@e104805> Date: Tue, 9 Dec 2014 16:06:46 +0530 Message-ID: Subject: Re: [RFC PATCH v6 6/9] thermal: cpu_cooling: implement the power cooling device API From: Viresh Kumar To: Javi Merino Cc: Linux PM list , "linux-kernel@vger.kernel.org" , Punit Agrawal , Mark Brown , Zhang Rui , Eduardo Valentin Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9 December 2014 at 16:02, Javi Merino wrote: > Sorry but I don't follow. __cpufreq_cooling_register() is passed a > clip_cpus mask, not a single cpu. How do I get "the cpu for which > __cpufreq_cooling_register() is called" if not by looping through all > the cpus in the mask? Yeah, its np that is passed instead of cpu number. So, that wouldn't be usable. Also because of the limitations I explained earlier, it makes sense to iterate over all clip_cpus and finding which one owns OPPs. -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/