Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2088498imm; Mon, 28 May 2018 01:09:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq0bvPBhAHurUSBByvNw91rXZ5VZSx296sc0X96lxpPY1UcEYT38El1u+IqkrhXUReFvE1A X-Received: by 2002:a17:902:7595:: with SMTP id j21-v6mr12604877pll.347.1527494958713; Mon, 28 May 2018 01:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527494958; cv=none; d=google.com; s=arc-20160816; b=ENy1mQZ/dU/p3RvXvL2BB5llFaB29KE6Ns6z6Qd1bGVIOHFXKY6kWmxmvdAKtIFVu2 HS5ngxMVaY6SdKr4MDfGnbWB/7v9Oe900cJysvH15DehpHbyafFclFwhLw0WJ1dUrImY rBfR72BshMja8iBMKxYUYwDq7A9RGXggH9+Dnyh/P/cnzwaLwR2SAE4p372fpySeD1DX r+vH+n8U/rQlPiX6C+SoyeN9uf6Tr+ZEzvhX4FPBP0TnAvqq4JnP6BGkU3qpTfAXN5L6 zjUxvaV10ESk55AK8Yg/DGes+ZI1HNTl0e7D6hbL9qTXOYIC89wSQldjZLcL4VAC3RB3 BOsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=1dxadHv3s4l8euu+TXcP4rK0oIHcNhJEXSom8U7ulH0=; b=TVWBWZAyEQyLWCqgw+GsQIgTNep0bQdQwkmuJBOK8FGMOfLgpIEBUvoHx9PEfu1173 vQJlbPyAwtcd0foWrus0yNYeM56bLudTPVJV5AUR8NMTBiMiTCl0J1Fa7WYE+L3K9OUh 2WvzUPHDUQJN57J0KOcC3a76MhekAs3Gyp8/zkOxQvX0rZDO61VI79d9dU7GCmn30zQQ tkFtdyVo/WbAq+Ps+aVu1eT9Hu3RPJE3cLhNpQB8BnczcnYPZhofGBmO2DrNoxS+n3kX 7ksleNtgTYYv2LiTJIHGCK50IjT5w8D/jeIM1nYiInXwlqGmTmhpcZ7hTjhidma8CZTR wSfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Hmux7QN+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5-v6si28058175plk.537.2018.05.28.01.09.04; Mon, 28 May 2018 01:09:18 -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=@kernel.org header.s=default header.b=Hmux7QN+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753998AbeE1IIt (ORCPT + 99 others); Mon, 28 May 2018 04:08:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:35116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753718AbeE1IIr (ORCPT ); Mon, 28 May 2018 04:08:47 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F04D2088E; Mon, 28 May 2018 08:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527494926; bh=w3AYkVmOQf6XqoeJJt+vWBsK4Q3AMx/Y5E21tp8x0+E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hmux7QN+E4i4PN8vySaKVMC7+Ma00A5fUoGj1+0mzl49LEMAK5NeCew7I/19nG/32 qNmMd7F3OkQLmMcpXG0szk0uQIRsemQY3FW2PjZbuY+YHgT2oVWn93OabWa1625jMN CnNpiSmryJcMaCf/vbJ2afKt3M6YYehX+uuzy8y8= Date: Mon, 28 May 2018 10:08:26 +0200 From: Greg Kroah-Hartman To: Matthias Kaehlcke Cc: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Arnd Bergmann , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris , Douglas Anderson Subject: Re: [PATCH 09/11] misc: throttler: Add core support for non-thermal throttling Message-ID: <20180528080826.GA17162@kroah.com> References: <20180525203043.249193-1-mka@chromium.org> <20180525203043.249193-10-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180525203043.249193-10-mka@chromium.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 25, 2018 at 01:30:41PM -0700, Matthias Kaehlcke wrote: > diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile > index 20be70c3f118..01a1714dd2ad 100644 > --- a/drivers/misc/Makefile > +++ b/drivers/misc/Makefile > @@ -57,3 +57,4 @@ obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o > obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o > obj-$(CONFIG_OCXL) += ocxl/ > obj-$(CONFIG_MISC_RTSX) += cardreader/ > +obj-y += throttler/ Shouldn't you depend on a Kconfig option to traverse into this directory? > diff --git a/drivers/misc/throttler/Kconfig b/drivers/misc/throttler/Kconfig > new file mode 100644 > index 000000000000..ef8388f6bc0a > --- /dev/null > +++ b/drivers/misc/throttler/Kconfig > @@ -0,0 +1,13 @@ > +menuconfig THROTTLER > + bool "Throttler support" > + default n the default is always 'n' no need to say it again here :) > + depends on OF > + select CPU_FREQ > + select PM_DEVFREQ > + help > + This option enables core support for non-thermal throttling of CPUs > + and devfreq devices. > + > + Note that you also need a event monitor module usually called > + *_throttler. > + > diff --git a/drivers/misc/throttler/Makefile b/drivers/misc/throttler/Makefile > new file mode 100644 > index 000000000000..c8d920cee315 > --- /dev/null > +++ b/drivers/misc/throttler/Makefile > @@ -0,0 +1 @@ > +obj-$(CONFIG_THROTTLER) += core.o > diff --git a/drivers/misc/throttler/core.c b/drivers/misc/throttler/core.c > new file mode 100644 > index 000000000000..c058d03212b8 > --- /dev/null > +++ b/drivers/misc/throttler/core.c > @@ -0,0 +1,373 @@ > +/* > + * Core code for non-thermal throttling > + * > + * Copyright (C) 2018 Google, Inc. > + * > + * This software is licensed under the terms of the GNU General Public > + * License version 2, as published by the Free Software Foundation, and > + * may be copied, distributed, and modified under those terms. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + */ Please just use a single SPDX line, like checkpatch.pl would have warned you about. No need for the full verbous license boiler-plate text here at all. thanks, greg k-h