Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1626938rwi; Mon, 10 Oct 2022 20:19:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79QmSgLlGR31H/9nyggkMc+pQ2pQCAfYqtSiVsa70pnqd9QUxl5LCP//KMLGwcBQMOCGCq X-Received: by 2002:a05:6402:847:b0:453:943b:bf4 with SMTP id b7-20020a056402084700b00453943b0bf4mr21005661edz.301.1665458394159; Mon, 10 Oct 2022 20:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665458394; cv=none; d=google.com; s=arc-20160816; b=adYik4Sa3hfUxhfnOJpFQOkJAtSR2ymZul+pWsfX+5LYLVjAr07t0z/l8to3wq8x59 MzQj9302UlqdSFHZV+gNxxfMFTeRFAa7/6dhusYAumkXGFWe/GbS5KNKq/guIbG8gIYl OVTCn9AjuXR0wnyzBCviYjcaB2ia8AZJfW/qowDoK0Q/vkmiZpWj8YA0N2095jJiPi5h 9/h8XsStjUQoKDgNcKmPrcAVE4fFGy06rrKCaaeJ1/Aa+6cyuo6CUJlpa7zaBzdJg6pR iYYspT7/quhNu/cQXosKc6wAISkKHpKExQJJwuUXc2wukrmNawtgUDxfNX/7egGaYwQk VApA== 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=LntH9WNdN7rlKiIZmbv0llXeNaMA97xMVBBJomnYFAw=; b=rROzjdCP1CwdpJ8M9cBGUP224Jf0PJ2R4b6onZBEtJ3UdQNCvnPtf+8HiF9ssR71Wy c0sXardO3qkYlj87Nj+sxJ5P8Jfbj8m9xY7LQHnBQr3/Sft/vA0PrhsrcajkC0HH2SMN L2DfYksj5JU0Me3E8FRhbYMKVBIjKhmeP/e18i+WmjLF61YZSFFZknmAG42eH9T/xOek tlRSfbcBTowHld7Us97cJ/Gf2f8rqXeYdDrFbfaR4RBL98z3W4aSwXMWfDooDZdg2SKm //Fy3yZ5Ctk3Sn4H20YfWx6xcGkApK+BhM0Q0qSIn3oOFafCrZfa/tFNe4T9mhwrMqEE pmcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iCyHHadE; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd11-20020a170907628b00b00774d0f10566si13652970ejc.821.2022.10.10.20.19.28; Mon, 10 Oct 2022 20:19:54 -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=@gmail.com header.s=20210112 header.b=iCyHHadE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229616AbiJKDGu (ORCPT + 99 others); Mon, 10 Oct 2022 23:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiJKDGq (ORCPT ); Mon, 10 Oct 2022 23:06:46 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDC036F57D for ; Mon, 10 Oct 2022 20:06:43 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id 128so4011223pga.1 for ; Mon, 10 Oct 2022 20:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LntH9WNdN7rlKiIZmbv0llXeNaMA97xMVBBJomnYFAw=; b=iCyHHadEcKG7exO047ddkuBqb3lPTi9GjS891kx7T06fJ4u7f7hXdDm9AM591WBKKR xudV5I+tk5bzfJ7V/jQa2qZ+beB1YwjCo6/8P3WdCB4GR0l9JVbEOrJm1R/k2xRbTibR cnwvYCePgJlgpf1M+qSJ8aHd7HRrhwFvW47qEdYNUe+0W3/RVCtg12+9WytokuRfTgNn nSN0nVyvDyTSB6x5g8zjdu5kB7hN6szIF9TjEilIiZk9P9ovSROmIHlqoqN+b4g/VVKx 7ADtRub/FY1VNzt+uvBFklUzjSO/+dXp5ef3bd3PwUo55hF7rz6XttdiB5W8r/CiPkEe Ur7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LntH9WNdN7rlKiIZmbv0llXeNaMA97xMVBBJomnYFAw=; b=3H7kDJoXfzjOR7SKf/e+rZpU0FDaGU+KOxLdW0hK3F/PN93AWJoJVmKs6g4T0A59f8 V8A9J0Maqz3qBkEiSNHyAydMmgdMcc5xMLY2Us4h8K5DzIOKKWLr6qHKKYSiSsXam3Lu QHtx3rWcWU6w4PPcDW0PKvBxjgC6nAFdyvajquH7pl8xV8fNjCoVQeR/Au55fPiN590Z WqIJEpvt2oOHODXCynR6S+PG+qC3OVuwmlKYIm9QyhJNfvC+YwD2yJ3JKRcFBCFgd1+I LY8jH/z62BBmNOkNKszPp/M7RkjG0+Guto3Ye7ojY3C28FQrmuH0FgElimqVb/cOgOzb 9Udw== X-Gm-Message-State: ACrzQf2Eh8hBa+d4JV6m6DZchzfwDQcfGJRoa2YjaA4vKhGmss7b0LEC aELXZprjcCkG9VW/wYD64An+Y/X22PPCDu0u X-Received: by 2002:a63:942:0:b0:43c:428d:16a9 with SMTP id 63-20020a630942000000b0043c428d16a9mr18639343pgj.423.1665457603330; Mon, 10 Oct 2022 20:06:43 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id m10-20020a638c0a000000b0043c22e926f8sm6845769pgd.84.2022.10.10.20.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 20:06:42 -0700 (PDT) From: yexingchen116@gmail.com X-Google-Original-From: ye.xingchen@zte.com.cn To: sboyd@kernel.org Cc: jstultz@google.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, ye xingchen Subject: [PATCH linux-next] timers: replace in_irq() with in_hardirq() Date: Tue, 11 Oct 2022 03:06:37 +0000 Message-Id: <20221011030637.322874-1-ye.xingchen@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: ye xingchen Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Signed-off-by: ye xingchen --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 717fcb9fb14a..f65e3e00ef61 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -1838,7 +1838,7 @@ void update_process_times(int user_tick) run_local_timers(); rcu_sched_clock_irq(user_tick); #ifdef CONFIG_IRQ_WORK - if (in_irq()) + if (in_hardirq()) irq_work_tick(); #endif scheduler_tick(); -- 2.25.1