Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760255AbaGPHvp (ORCPT ); Wed, 16 Jul 2014 03:51:45 -0400 Received: from dmz-mailsec-scanner-6.mit.edu ([18.7.68.35]:59265 "EHLO dmz-mailsec-scanner-6.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758364AbaGPHvl (ORCPT ); Wed, 16 Jul 2014 03:51:41 -0400 X-AuditID: 12074423-f79bf6d000007580-d7-53c62f0ca67b Message-ID: <53C62E93.8010307@mit.edu> Date: Wed, 16 Jul 2014 13:19:39 +0530 From: "Srivatsa S. Bhat" User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Viresh Kumar CC: Saravana Kannan , "Rafael J . Wysocki" , Todd Poynor , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List , "linux-arm-msm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Stephen Boyd Subject: Re: [PATCH v2] cpufreq: Don't destroy/realloc policy/sysfs on hotplug/suspend References: <1404959850-11617-1-git-send-email-skannan@codeaurora.org> <1405052287-4744-1-git-send-email-skannan@codeaurora.org> <2f549e6e4871ccf2a94dd4c8872c7a0b.squirrel@www.codeaurora.org> <53C0A12A.2060204@codeaurora.org> <53C42AA8.8010107@codeaurora.org> <53C4BDFB.70707@codeaurora.org> <53C4D12E.3040807@mit.edu> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJKsWRmVeSWpSXmKPExsUixCmqrcujfyzY4NwraYtNj6+xWkzcf5bd 4vKuOWwWn3uPMFqcOX2J1eLHmW4WiwMXJ7JZnF3ezGax8auHA6fH5b5eJo8Fm0o97lzbw+ax eUm9x5ar7SwenzfJBbBFcdmkpOZklqUW6dslcGW8vP2YpWAaV8WTOa+YGhj/sncxcnBICJhI rD7L28XICWSKSVy4t56ti5GLQ0hgNpPEk5YfzBDORkaJB39mMEE425kkDh69xAbSwiugJjHr 2iZGEJtFQFXiZd8ysKlsAtoSyzZKgoRFBeIkGo9/Z4QoF5Q4OfMJC0iJiICWxMubqSAjmQUe MEsc+zuVCaRGWCBMYuaGdVC7prNKnPwzF2wXp0CgxOT5ILs4gDrUJdbPEwIJMwvIS2x/O4d5 AqPgLCQrZiFUzUJStYCReRWjbEpulW5uYmZOcWqybnFyYl5eapGumV5uZoleakrpJkZQjLC7 KO9g/HNQ6RCjAAejEg/vhpCjwUKsiWXFlbmHGCU5mJREeVOkjwUL8SXlp1RmJBZnxBeV5qQW H2KU4GBWEuEVYQHK8aYkVlalFuXDpKQ5WJTEed9aWwULCaQnlqRmp6YWpBbBZGU4OJQkeB/q AjUKFqWmp1akZeaUIKSZODhBhvMADV8CUsNbXJCYW5yZDpE/xagoJc5rCZIQAElklObB9cJS 2CtGcaBXhHnZ9YCqeIDpD677FdBgJqDB5TWHQQaXJCKkpBoYO60uh6+btuC9bHj+C2b1+u85 X5+335ytlv5WnmmCXORl5cUfI65WFTCfy930vqNp1bxfEmx9KcpnjmxtvLz++P6flZKbdk1u 2OVbG/uE9QRj1grzdE1vk32ZaxUt558T2re4ZuHBtXqexyzcnv+7F1P0yls+9NzEl4J5jI5O 2hu767k5HezTlFiKMxINtZiLihMBSMBDszwDAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/16/2014 11:14 AM, Viresh Kumar wrote: > On 15 July 2014 12:28, Srivatsa S. Bhat wrote: >> Wait, allowing an offline CPU to be the policy->cpu (i.e., the CPU which is >> considered as the master of the policy/group) is just absurd. > > Yeah, that was as Absurd as I am :) > I have had my own share of silly ideas over the years; so don't worry, we are all in the same boat ;-) >> The goal of this patchset should be to just de-couple the sysfs files/ownership >> from the policy->cpu to an extent where it doesn't matter who owns those >> files, and probably make it easier to do CPU hotplug without having to >> destroy and recreate the files on every hotplug operation. > > I went to that Absurd idea because we thought we can skip playing with > the sysfs nodes on suspend/hotplug. > > And if policy->cpu keeps changing with hotplug, we *may* have to keep > sysfs stuff moving as well. One way to avoid that is by using something > like: policy->sysfs_cpu, but wasn't sure if that's the right path to follow. > Hmm, I understand.. Even I don't have any suggestions as of now, since I haven't spent enough time thinking of alternatives yet. > Lets see what Saravana's new patchset has for us :) > Yep :-) Regards, Srivatsa S. Bhat -- 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/