Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp142987pxk; Thu, 24 Sep 2020 01:37:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6tHA85f/rfYBqKRWTIWIXjsCytROaujp3GXj3FH6p2Iw69qrqKA4gmoQ2snUL5em4EVpw X-Received: by 2002:a17:907:2055:: with SMTP id pg21mr3655892ejb.501.1600936664079; Thu, 24 Sep 2020 01:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600936664; cv=none; d=google.com; s=arc-20160816; b=g7+ydn03g+KmP0jaWklqY+HgjK9qcgmp35gXk/LOqiA/2ZpH49cJ8+zvv/Scv5xuSy /QFyq5oWwGlRyfH9vQzmjeGPR0RYoq3bdHi7NOuZHJb4NolVmr/czCXkxg41gWOP/GRk HlSWDnJegTDv4Wx3+wbYI3zYko0ixSSnBJKmbXUJuupkah1cBsT4gHisgRUfikXa5W3P hTpQahj7aZFnkVxkl5lhGLqJ/fwj56BA5O7kjSGqD8uohO1MQeWEfv9tn+NCjIU0Ag7R WWy8WFZC5xI/YhzTp5YYv5fq7o1QYrgKdx6rPDg1U1WtfU9xBjURWOFqqc2igbRnbNja Yfqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=TDxJccgKr/pqF0i8iVp/rre3jVO7uhvMIYmZMnvVvZU=; b=d2/g8p3SX8SC6Ddo0NNeZTAuPtd+qduwFERdm5EvVHSF6I8mMaqxEWVcRq7BrX5FoN LaAwSHNAyCWrO4I44iUNQ3hTKtH47+I5HBsDP4zFbPphU9Jh9UGfaXrTzoapW+uuhpN6 p/lkf9SSppZ9+0NG2qeCSPKDdNO8GbJguwUhfJbJkJYmbvLJ4e2QwqRz2WSREVDEUOiq YcEYRW+AdZ+1udamyXBvjm+ocFG1aCEODh6cqO6G21Ejtl2b2yQc65d2N06+Iz5SorvT PdgtLn6HXql/BoUsyg/BSN42C+v8L9WsxPLPMTKaBTEHILal3Mlt+JJ9y9wF0tsviIpc A/8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SyZdcieg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si1387749eja.502.2020.09.24.01.37.20; Thu, 24 Sep 2020 01:37:44 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SyZdcieg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727211AbgIXIgF (ORCPT + 99 others); Thu, 24 Sep 2020 04:36:05 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:44130 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbgIXIgE (ORCPT ); Thu, 24 Sep 2020 04:36:04 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1600936563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TDxJccgKr/pqF0i8iVp/rre3jVO7uhvMIYmZMnvVvZU=; b=SyZdciegcKpPV0jjV9bRo7+vUSCKycz9MgFEb9oTm6uwrf3OSk8uq2hYmxa/8CocuFkL1x 4Pd6h8RV0R6hyGzlxiXwtyQzwo7vO4Ht6O/NcntsACRqThO4QO9GQW3DDb7jJhd6Gg2sei sYKVTtvpjEIeaQ9VICZcCwqjIbx2Esg/A7aSUfZN7CO43O4Do3tlFHxYIFk101FjNkOYAC xlH/REP186S6g/9iPvvKKdv21WS6xvP81kjtMg6fFm8rvmcCHwt9mIXRY46eihHDm2Lt5O pUCQQx1Cy+oElJln7Poo0i52iAL80S/YDqzpjAY1VlUCYTMyPmvxzD5RKdpojA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1600936563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TDxJccgKr/pqF0i8iVp/rre3jVO7uhvMIYmZMnvVvZU=; b=T9nd67LCewMGjblbiZmewyerC19x+1DjMLYUzTl3K8oD1lOpWuJupJC/YoXUZZ/CzaPVGc DYG+qCSYzGYdg2CQ== To: qianjun.kernel@gmail.com, peterz@infradead.org, will@kernel.org, luto@kernel.org, linux-kernel@vger.kernel.org Cc: laoar.shao@gmail.com, qais.yousef@arm.com, urezki@gmail.com, jun qian Subject: Re: [PATCH V7 2/4] softirq: Factor loop termination condition In-Reply-To: <20200915115609.85106-3-qianjun.kernel@gmail.com> References: <20200915115609.85106-1-qianjun.kernel@gmail.com> <20200915115609.85106-3-qianjun.kernel@gmail.com> Date: Thu, 24 Sep 2020 10:36:03 +0200 Message-ID: <87v9g38tcc.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15 2020 at 19:56, qianjun kernel wrote: > asmlinkage __visible void __softirq_entry __do_softirq(void) > { > u64 start = sched_clock(); > unsigned long old_flags = current->flags; > - int max_restart = MAX_SOFTIRQ_RESTART; > + unsigned int max_restart = MAX_SOFTIRQ_RESTART; And this change is related to making the timeout check a function in which way? Thanks, tglx