From mboxrd@z Thu Jan 1 00:00:00 1970 From: Saravana Kannan Subject: Re: [PATCH 04/18] cpufreq: Manage fallback policies in a list Date: Wed, 18 Feb 2015 13:15:25 -0800 Message-ID: <54E500ED.20001@codeaurora.org> References: <1746505.56yzpQ04cT@vostro.rjw.lan> <35613222.up9lS5n2CM@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:38361 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752789AbbBRVP1 (ORCPT ); Wed, 18 Feb 2015 16:15:27 -0500 In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Viresh Kumar Cc: "Rafael J. Wysocki" , Linaro Kernel Mailman List , "linux-pm@vger.kernel.org" , Stephen Boyd , Prarit Bhargava On 02/17/2015 08:23 PM, Viresh Kumar wrote: > On 17 February 2015 at 23:45, Rafael J. Wysocki wrote: >>> - And then during unregistration the sysfs remove will get called? > > I meant subsys-remove here, sorry :( > >> The CPU device goes away then and that should trigger the remove of all the >> sysfs directories under it. > > How will the cpufreq core know about it? cpufreq_remove_dev() will get called? > > Is there a way to emulate it? So that I can test it in my setup.. > During logical hotplug, you only get the hotplug notifiers. During physical hotplug, you get the subsys_remove. So, we have all the information needed to distinguish. Remove the sysfs entries only in subsys-remove. -Saravana -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project