Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp240282ybj; Thu, 19 Sep 2019 13:39:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPbr3nzeaL9RWJaZrww3pMDDO3SrHnH86PuCkVNC0FA1Y/N1mfik/lrvDrYmEHLmo8QTnJ X-Received: by 2002:aa7:c759:: with SMTP id c25mr18038497eds.15.1568925563992; Thu, 19 Sep 2019 13:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568925563; cv=none; d=google.com; s=arc-20160816; b=zL6MACgGdx07wFgnI9he6I3n+D3gqO0W5lA6NqdtgNuTm5BeGqsVvaHGESOoUi+LBp 2nbaeoU1YVcJU7gITgyojtrcTnmSF8dCw8PBKzJLo+Lrz0UArwjmsweUfK54LJ1HHDzS 7Hy9OPJOb7UcmysruyQ+3bR5CV+2Puj/HiymIcwMibpj/iCzQCA3Up53Q2w6YEdJtVtY RNC5Mzp0b/97cRZQhSoU+zM8CHXK6g3U/kazN5JxsUnHZ3FSJOtuPoT2OesYQm+Uleob ZWvspoJYMB5F58HSvmXtCH5v9h2cjuOAD3bKkdJ06jJOB5DTSmDYP+yGw0fodOKq3gSA fChQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=dado4DWwbPqaj8lwgKANZ7Ut7Q1Q+qbnhDukwv5epng=; b=FB/zmdXiMEUScj8N5WOUXe9jHUEiQ7ZRHtuck8Mj/Nnk+NlwTI8DeHKy7gmMVpMHN7 lS2ZRd7cvvnoV5PIyvv0/shyLnuGZPQvhOEgeY6Grb4IqBvKfrKMi635t306z3a+DAlv iTh0FWDY16Tt/a5TUxXaIracAQaKMvCXc740QixXy5o9Yhe5ATqhC70UdSt6nLRBTc6Y hxVn1LJnpaCdA7YwQ11KJoMYR/Tsz7gFrpfFtzfnl7CFq72G598TTvCd18CUdY8IoLTj rXJ+elwRh48JF4oKDEiK4COTYTteWiCBk/WreLh8JeM6ueT0j/kCS0PpoJKA9xNcHxiG uJFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si4953619ejr.234.2019.09.19.13.39.01; Thu, 19 Sep 2019 13:39:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732463AbfISONj (ORCPT + 99 others); Thu, 19 Sep 2019 10:13:39 -0400 Received: from mga12.intel.com ([192.55.52.136]:36657 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732259AbfISONi (ORCPT ); Thu, 19 Sep 2019 10:13:38 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 07:13:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,523,1559545200"; d="scan'208";a="199405265" Received: from honglili-mobl3.ccr.corp.intel.com ([10.255.29.241]) by orsmga002.jf.intel.com with ESMTP; 19 Sep 2019 07:13:35 -0700 Message-ID: Subject: Re: [PATCH 1/5] thermal: Initialize thermal subsystem earlier From: Zhang Rui To: Amit Kucheria , Daniel Lezcano Cc: Linux Kernel Mailing List , linux-arm-msm , Bjorn Andersson , Eduardo Valentin , Andy Gross , Taniya Das , Stephen Boyd , Lina Iyer , "Rafael J. Wysocki" , Viresh Kumar , Linux PM list Date: Thu, 19 Sep 2019 22:13:34 +0800 In-Reply-To: References: <97b6f861e6e6a2ac7b50efb7211f3c8e7fe872b0.1568240476.git.amit.kucheria@linaro.org> <6920d231-73cf-d83d-2cc7-f29e5f73192c@linaro.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-09-17 at 14:48 +0530, Amit Kucheria wrote: > On Tue, Sep 17, 2019 at 1:30 AM Daniel Lezcano > wrote: > > > > On 12/09/2019 00:32, Amit Kucheria wrote: > > > From: Lina Iyer > > > > > > Now that the thermal framework is built-in, in order to > > > facilitate > > > thermal mitigation as early as possible in the boot cycle, move > > > the > > > thermal framework initialization to core_initcall. > > > > > > However, netlink initialization happens only as part of > > > subsys_initcall. > > > At this time in the boot process, the userspace is not available > > > yet. So > > > initialize the netlink events later in fs_initcall. > > > > Why not kill directly the netlink part, no one is using it in the > > kernel? > > That's a good point. I wasn't sure if anybody was using it, but I can > remove it completely since no driver seems to be using the > thermal_generate_netlink_event() api. Interesting, I recalled that thermal_generate_netlink_event() is indeed used by some thermal driver, but it's true that no one is using it now. let's remove it and see if we get any complains. thanks, rui > > Regards, > Amit > > $ git grep thermal_generate_netlink_event > Documentation/thermal/sysfs-api.rst:just need to call > thermal_generate_netlink_event() with two arguments viz > drivers/thermal/thermal_core.c:int > thermal_generate_netlink_event(struct thermal_zone_device *tz, > drivers/thermal/thermal_core.c:EXPORT_SYMBOL_GPL(thermal_generate_net > link_event); > include/linux/thermal.h:extern int > thermal_generate_netlink_event(struct thermal_zone_device *tz, > include/linux/thermal.h:static inline int > thermal_generate_netlink_event(struct thermal_zone_device *tz,