Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5118865ybe; Tue, 17 Sep 2019 02:59:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdfHrzg6R51U22AKKGmNCD04LwGAPJ93t/n0d+ntXEWHx9aZIBxHq+EfOMD8Fu+BRA7Asg X-Received: by 2002:a50:8a9d:: with SMTP id j29mr3750173edj.283.1568714345142; Tue, 17 Sep 2019 02:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568714345; cv=none; d=google.com; s=arc-20160816; b=mz7CDNqdxPtZufMIcxDfMEGcvwAz+EXKGzrtqPH+DeRl/L+L+KzuNgyKUOPttxxOsq ST+4gnzyKM9UKxidVY+rB27IM3KTmne+Him03F8B3yrHNRuB69mxpICm/cqJunbj/6Iv jUA+x5b3nYWlCE99/1PlK6rmNdbw1+Az1HL7o7tx3cBruebqRICFF3yMAZX0d96Wr2Vz rS3+QZkg0nkWhUbFpyqcln2dxWpKiRA7Oo91e1zgN4XfUKS7+bbOXJpHZXetPRQyqHoj DHgpl5Zg5btT+TBZSeQCiQZevz5+OJvf9zP6rd0hEKLzd2iD4wDBAY81YIs2DxfMzdpd U5GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Qk1/kEMCc7hdtCl5vveWWjPTyqEJHdmDX9cEtBBSrMo=; b=sw+mBavIqn+GBh7bgi5+zFA6GQ9zRSN054uYN4iUZGHEp8k0nNabJ53qkRxVUjtBdF Cl3Z0MEtAZaHM/Sl8DjDnWwm4hd26UYcKN6TjMV2axAo4ypgkT6msvSuUR46zzNJI01f Bd2ixraSJxBVeJgaPH5iZy2ARvN2JsAysZCG1YRch4PYABNSOf0tCosOwqZvDIUya+hB d9QaHiCxYrxOiASz1Ol8zo05E8S2Ri8NQQJk8wsdlCrDABIoFYwIYN2tpvmLC7rm8f38 oX8+eDx1/ZeuGgzJhGofnFWktwtnGZwja9g+lWgUBTk5vt5G1qBziuQ6Ev8b6iXP1ofB H/Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="oNed/+kk"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pv19si789182ejb.181.2019.09.17.02.58.42; Tue, 17 Sep 2019 02:59:05 -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; dkim=pass header.i=@linaro.org header.s=google header.b="oNed/+kk"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbfIQJS6 (ORCPT + 99 others); Tue, 17 Sep 2019 05:18:58 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:35285 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbfIQJS5 (ORCPT ); Tue, 17 Sep 2019 05:18:57 -0400 Received: by mail-qk1-f193.google.com with SMTP id w2so3202226qkf.2 for ; Tue, 17 Sep 2019 02:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qk1/kEMCc7hdtCl5vveWWjPTyqEJHdmDX9cEtBBSrMo=; b=oNed/+kkOpBqzgWZvc8m2HoCUsR870bim/7U6M6ciIxMGGmQnC551uF2G+T6HjZMHn +tnBXLKaFDx//RH0OvknlYwyJjua5GUILPW76AwekbFW4gPNNHQWqlAH4s5xrNqkwCoB Wey4KwVBY8lZ0wjk/+/+9RyqneCmbw0VT5aIgRFL0GxyzK0CT8F88x3UA3dPNxET1fu/ OSZ7kE5axDPfK8IoDCxOgCJNiFdLhCO3p2wFfyEzUsfMeqmW1FsD2p9l9ZGWs/5739Nw OeoXkpjTP/5rN2yaGgIRa81J7wB6isbp9Y8NRB3FNE8afvWkC7TCs+fnOzWO8YMOXpU5 cn+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qk1/kEMCc7hdtCl5vveWWjPTyqEJHdmDX9cEtBBSrMo=; b=cQRKinxmYj+eNxixqmThXcUxIrQ0gazv30EanGZOVPiAAPrFvZYBYbf78pm0VN2AgM Y7oK/Si0/YoKWgTkFD4JsYKWSpb/ePb581lz0NwrsbPECRJMdm1IcmIxUJ2o3ZZbHri8 Xa4dmvO7t86/QsyTaEIjpzbAk6WWkLDxl5yurhCD5XwXkugjcJgRQ2J6tQe1wHGo2fLr jM1TpfSF9rxpPK9LxlNWqM0pcfmvxGfMHfonNAZBhIdW00IloY9E9r5vwrUmzq3jV+ea qdywvbnS/ZhDSsJ4tlv1E2x7E0w4B44tdjSFXaDcNHyg5IQI2A0fnmloj9ae4B4O49H1 q8Cw== X-Gm-Message-State: APjAAAWJ1+FeZVyUSKH/SykoO+diMx2g1Rp4M85R1rgeXCeF65Y3ied+ b/ydhupQMwlZrZmAfMTzsrgFlcffJ5oFHX+eEgIZ9g== X-Received: by 2002:a37:6d2:: with SMTP id 201mr2596626qkg.106.1568711936825; Tue, 17 Sep 2019 02:18:56 -0700 (PDT) MIME-Version: 1.0 References: <97b6f861e6e6a2ac7b50efb7211f3c8e7fe872b0.1568240476.git.amit.kucheria@linaro.org> <6920d231-73cf-d83d-2cc7-f29e5f73192c@linaro.org> In-Reply-To: <6920d231-73cf-d83d-2cc7-f29e5f73192c@linaro.org> From: Amit Kucheria Date: Tue, 17 Sep 2019 14:48:45 +0530 Message-ID: Subject: Re: [PATCH 1/5] thermal: Initialize thermal subsystem earlier To: 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 , Zhang Rui , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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_netlink_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,