From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ilvokhin.com (mail.ilvokhin.com [178.62.254.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 901BF3B531D for ; Mon, 9 Mar 2026 16:04:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.62.254.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773072293; cv=none; b=QX+0lMn+l74LQqIW7GPx4FK0uYwo6jtW5XHnr4t2bz+n0pqDt5MQYx7VRRIufewVpm1U12fvk+9xx8nI4BUovze8ZQtd2BKDhXjCa5+WGx0wQMpPOwhfzmurBN3jiosGAY0K97dAtYbiWr8NeyYJt5RmVoBWD2w1e3uVa25jcX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773072293; c=relaxed/simple; bh=+rKqlqYxLijQfRTGnKwROkUqiO5FY12CWrnrKi+zRVU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=egv3nCRFcLWZsEogjdCetGL9vRh7H8rAEf64QfjavaQ9OOOhAY3Y9y9cyVnFOLt0l9j83qOpTUc16ITekU+V78dU8NkEawpXukAhK52INJPsmlvHSjOmbo9fZG6H+DmmoT3PznzInvBqe6GCSgS+5uujyJ6reft4hAyD5iwjdDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ilvokhin.com; spf=pass smtp.mailfrom=ilvokhin.com; dkim=pass (1024-bit key) header.d=ilvokhin.com header.i=@ilvokhin.com header.b=bF7HVjvO; arc=none smtp.client-ip=178.62.254.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ilvokhin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ilvokhin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ilvokhin.com header.i=@ilvokhin.com header.b="bF7HVjvO" Received: from shell.ilvokhin.com (shell.ilvokhin.com [138.68.190.75]) (Authenticated sender: d@ilvokhin.com) by mail.ilvokhin.com (Postfix) with ESMTPSA id 14671B36FC; Mon, 09 Mar 2026 16:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilvokhin.com; s=mail; t=1773072291; bh=J9fKMzfWVIwvPRlp3ixNqUPm9aDlJ8oj7/YverBiBHA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=bF7HVjvOUSBPAEjTI/3OAR2c4iaw5tHdAP3r+cZgI0KoDP5zX6jasZquTxFzSEkyD J2lw+aJXm58FJpXbzGLwd+ispgeyfh2LNHGwJAnTM3wFWiHBl0SZpgrUW6Gx5t9ue3 xk0WExtoN+sl51O2gpWpuFzWtd/wo4p/mBJEu1Wo= Date: Mon, 9 Mar 2026 16:04:49 +0000 From: Dmitry Ilvokhin To: Thomas Gleixner Cc: LKML , x86@kernel.org, Neil Horman Subject: Re: [patch 03/14] genirq/proc: Utilize irq_desc::tot_count to avoid evaluation Message-ID: References: <20260303150539.513068586@kernel.org> <20260303154548.149638880@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260303154548.149638880@kernel.org> On Wed, Mar 04, 2026 at 07:55:40PM +0100, Thomas Gleixner wrote: > Interrupts which are not marked per CPU increment not only the per CPU > statistics, but also the accumulation counter irq_desc::tot_count. > > Change the counter to type unsigned long so it does not produce sporadic > zeros due to wrap arounds on 64-bit machines and do a quick check for non > per CPU interrupts. If the counter is zero, then simply emit a full set of > zero strings. That spares the evaluation of the per CPU counters completely > for interrupts with zero events. > > Signed-off-by: Thomas Gleixner Reviewed-by: Dmitry Ilvokhin