Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2646656pxk; Sun, 20 Sep 2020 11:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRBG+IVXPw1L7CmZNzP19OKCZ0iOZauFoqDewT/0FaXgEqSzem7szQEN9lb5AOySkAhicJ X-Received: by 2002:a17:906:eb11:: with SMTP id mb17mr45337156ejb.255.1600626929074; Sun, 20 Sep 2020 11:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600626929; cv=none; d=google.com; s=arc-20160816; b=ukdBtHvJlk6vym3lufBkQTZmmKkFTTDtPusawqxK3FeJrmFOwpEcO4rJs0qJ7aBzi1 R/X/iFHGWXRGT9ZTR/OShpyGhg0FB7/IGJJGdXKxlhWKf9qczqhgL+tZ5Hzk7xfMib6M J+PSZMR2oTC4DOGAiPqk8cAlp/p09HFtWNsy3+yoSeiQkBOL7o9dnCCJ3H3HN2xVFR4y NYTPoDWsmkDwYunJh1Fw+LBRig3aF84kzMNy2mOJFDBPp0KyFfmYlxsMAkjCCNIxsogb fVl6WdI2XxrsgfFutWM123ORn7ZgPpXORy7ZR/a2y5QZFKM7JVFONcklXma2OyTcuz3G SNzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=v4Y1Kyb/QtQL+FIMHJzQFJPUl7qJfcHTuAjTEVl9xCs=; b=ppn2U8DmdVfwaPCwUKI/k4AVFqmNsE7Lr1IDpeInFxaWOpr7Zf7tm0muHbZMnWhV9e tXklp5mBz4pGQFeuXYRYH0tCR62GoNPtWvLtACaOUPdFZS+vAKVH/rsaeP29AzpYffXh W3avwH9FR8Y1/x99sk43mCTsFvNkEEC/tMS/ZHVe1Kjtj18TLq/dqW+907pFfEN5+O0t Boz5c/YEENHOnA91qAwcGUvaAYhSNoL32IEkBFLVFyiDvrZtBM4cJwapQwZF7thX96Yb psLzgGNhmzpN9l8YI+GxphS9R8EcGwIexme3CrdiWvZ0bT/liF9SQpCw5unl5rQT59Ac XJxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si6792047ejw.176.2020.09.20.11.35.04; Sun, 20 Sep 2020 11:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726187AbgITSeE (ORCPT + 99 others); Sun, 20 Sep 2020 14:34:04 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:56768 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgITSeE (ORCPT ); Sun, 20 Sep 2020 14:34:04 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id CA3891C0B8A; Sun, 20 Sep 2020 20:34:01 +0200 (CEST) Date: Sun, 20 Sep 2020 20:34:01 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: linux-leds@vger.kernel.org, dmurphy@ti.com, "linux-kernel@vger.kernel.org" Subject: Re: ledtrig-cpu: Limit to 4 CPUs Message-ID: <20200920183401.GA21494@duo.ucw.cz> References: <20200919093833.GA14326@duo.ucw.cz> <27e19ac9-4bc0-2945-3985-6cd6bb5407df@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <27e19ac9-4bc0-2945-3985-6cd6bb5407df@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > * > > * It can be bound to any LED just like other triggers using either a > > * board file or via sysfs interface. > > * > > * An API named ledtrig_cpu is exported for any user, who want to add= CPU > > - * activity indication in their code > > + * activity indication in their code. > > * > > * Copyright 2011 Linus Walleij > > * Copyright 2011 - 2012 Bryan Wu > > @@ -145,6 +149,9 @@ static int __init ledtrig_cpu_init(void) > > for_each_possible_cpu(cpu) { > > struct led_trigger_cpu *trig =3D &per_cpu(cpu_trig, cpu); > > + if (cpu > 4) >=20 > NACK. The workaround for this trigger was implemented for a reason - > to make it working on platforms with arbitrary number of logical cpus. > I've got 8, so I am discriminated now. Not saying, that it precludes > trigger registration with no single line of warning. Can I get details of your setup? What CPU type that is, and how are you mapping CPU activity to LEDs? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX2egmQAKCRAw5/Bqldv6 8ifzAJ425uTIMaxQjbPH64kCDAFYOYS/EgCfTu7q/5bT+yzx1aKsfqeRIQBfdtM= =7Xqf -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--