Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3225976rwb; Mon, 5 Sep 2022 08:15:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7tJtXLN1IyEmQTuXsuzqWmxvjmFOQqoy1iBnD5dddoQoyrPTsV7hBpZhhEqRxdiYWGnnd3 X-Received: by 2002:a17:906:8a47:b0:741:5d6a:13e5 with SMTP id gx7-20020a1709068a4700b007415d6a13e5mr28760480ejc.60.1662390910731; Mon, 05 Sep 2022 08:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662390910; cv=none; d=google.com; s=arc-20160816; b=VpGyQlB5wWEduExyWxByrAOTL25edMwMCYBI3rrXD2XeBb8fHJdOWsFOYuc9MI78zG Pkr4zr9USnG003VPZ6B/hAKPNLYscvFiOBX4bBUvR3cWMdg7kCLQ2LjrZEYMJneHoCbm N9AZWSpf1xOPHbk3I0LFy79tVUQ1ycRdvnn9rs/7ZIJ5A8OclIUlWxVjcYD8iD8yfDs1 WxJcJ6hsDoMyqKgSgOANImiKHm05B7Rj3x94JdrKNLEefRfgNxjrD6Wp2/mBYB+vD1HA jpXLup3J6T0VII/ipXs1WElm6CUXtmjj4IPDpd7zk7hidMA2tlyrAksNgrt2F/Y/TDVy fqIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Wlj2+degXH+iEC0bffOo5ceIWENK7IpGnLJ5xjDb3JI=; b=l6L86SXDLNZlrsKRnqUz4VJR0chf9MaNAePGFoY4OoF1nf1SLo4Fv7aj0TT5q2vAcw Cb7m0GT7z7IiWnpkTZfQdyIU7UXPgKNG3qc7+IeTaVVV6c6ZWj1AuyrCWpsNEGt94h9M 2TWcwUP1rIJvoNhbvaUZ5cT/VIT3VOxT59ZFDYsc06XuN6RmpCj7+rjt1W9MJf7DZWHQ B2ETPD2EsX813L3UCu//81AK/nBN+2uLMT4sdlLOFlAAgFNyaNwwY1WE/sSICHqKF0rx TU+Ng9qQYZUf0KkRAHfSkeRuOWH0TBZVAKmfIy0K/bqkrurscKBgXPH5+7/gKjq/pNGV 5fug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=n9vkRqF8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a170906795100b0073fc8e72882si8319384ejo.28.2022.09.05.08.14.30; Mon, 05 Sep 2022 08:15:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=n9vkRqF8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237050AbiIEOTR (ORCPT + 99 others); Mon, 5 Sep 2022 10:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236988AbiIEOTO (ORCPT ); Mon, 5 Sep 2022 10:19:14 -0400 Received: from m15112.mail.126.com (m15112.mail.126.com [220.181.15.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1C2B564D2 for ; Mon, 5 Sep 2022 07:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=Wlj2+ degXH+iEC0bffOo5ceIWENK7IpGnLJ5xjDb3JI=; b=n9vkRqF8UuCxLCetJsYXO uDccjUofUwUVfrJvltvAZDqrDFkmZuuSBflRJP5gSNlEffzC3px/K2oidnSDbNw3 y8yaCHpovxqbzmyrmZFPYtoUwCPtmT6xj0Bwll3YXhedyPXF15Qf3e7e7aWPik8c 7GsD2SH3agguLVTMI4Vkgw= Received: from localhost.localdomain (unknown [180.113.78.212]) by smtp2 (Coremail) with SMTP id DMmowABntbE+BRZjKFbBAw--.25777S2; Mon, 05 Sep 2022 22:18:39 +0800 (CST) From: wonder_rock@126.com To: catalin.marinas@arm.com, will@kernel.org Cc: frederic@kernel.org, ardb@kernel.org, wonder_rock@126.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] arm64: preempt: Add NEED_RESCHED to the preempt_count() Date: Mon, 5 Sep 2022 22:18:29 +0800 Message-Id: <20220905141829.28605-1-wonder_rock@126.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: DMmowABntbE+BRZjKFbBAw--.25777S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wry5JF18WryxArW8Xry3twb_yoW3AFgEyw 1fXr409F40yFnFq3Z0ya4UJr1jkw18XayDWF1rAF97Aw1DCr17Gry3Xry8Kw1fZrs5Grs3 Xa97GrWUAwsFkjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRArc-3UUUUU== X-Originating-IP: [180.113.78.212] X-CM-SenderInfo: xzrqvv5ubu0ubn6rjloofrz/1tbiJABzgVpEFi3VUwAAs1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Deyan Wang preempt_count() will be checked in preempt_schedule_irq(), we need check if NEED_RESCHED in preempt point. Signed-off-by: Deyan Wang --- arch/arm64/include/asm/preempt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/preempt.h b/arch/arm64/include/asm/preempt.h index 0159b625cc7f..083b0fd3c52a 100644 --- a/arch/arm64/include/asm/preempt.h +++ b/arch/arm64/include/asm/preempt.h @@ -10,7 +10,7 @@ static inline int preempt_count(void) { - return READ_ONCE(current_thread_info()->preempt.count); + return READ_ONCE(current_thread_info()->preempt_count); } static inline void preempt_count_set(u64 pc) -- 2.25.1