Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp511682imk; Sun, 3 Jul 2022 02:12:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tNMxygsJZ+MEfcB4lu6UMxr50PYHRPuLIDY2kNQnWPLDaPcUFND4wAuEnGW2Y1QJnaKA31 X-Received: by 2002:a17:907:9725:b0:726:c820:7653 with SMTP id jg37-20020a170907972500b00726c8207653mr23392339ejc.633.1656839531939; Sun, 03 Jul 2022 02:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656839531; cv=none; d=google.com; s=arc-20160816; b=kp37S84VHaaiMLuzwu3IzfSPge3/RPjuw5SBw1Zmlol3IJIszj19CDI8bsL0xAzWcN V/aPez1a5xMGENWJOLQTr/o2rPZJhgHjyoL/HPQpg1zrHcSWv9jcFGeyQfkXVoGdtOgZ BQc1wHgNtPrde2UfPXQCUual2rKpnEZQo+5GKiHeE9FSZzd4x5rTj+jlVsW70cPwT7ED fTd4DBgkpEy8bVxdAp/V5b+WQRGwJoX+58wYhOfYD0obk5i8f/o4eXa/CrktCRlPPSfp OyMo7x64FsrhsPIC/SyTKWU3LMlC4kljhlaAjzUPOyNOyOlrKzgt1Qe0SpyvmQ46k+qz mXGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=DbBc8fwawzTpY5N3Vqs7SMXU/OS+nLSDmYroCwbwDWY=; b=nGbmLwGzDjQ59bqhE8bCJEQ4nbdQz4ZlROif1gjGTM8aDVJ9Cg9C51fJ4aPLVyx5A3 6RAW2x+gINpwUoYMQw2W1NzZzaiUuRHYv2ZBQTDozo5u2UvnpUvPhDxfv0gqXHSrXQDf Ggl0X9M3ZQKIX0OfueLakHiI44nuhAEYEinrUjkUeqWlawXZxCYmOfufFCS0mv50LxFV 60mVzfN7srD4fOdijotIGd7c+GuqQmNGTLNxumvX/M4vPB6l1aCOF2HUbVjby/CqMVCo Yxn9jiQ3wUkrOmz4325IqLNpi61K/sH7u0HTzrRwxPfk6bOm+z3zk5eK6L7EcZ8DEjQg m/8w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g1-20020a056402320100b0043964b175b7si11329521eda.603.2022.07.03.02.11.43; Sun, 03 Jul 2022 02:12:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232582AbiGCIqk (ORCPT + 99 others); Sun, 3 Jul 2022 04:46:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbiGCIp4 (ORCPT ); Sun, 3 Jul 2022 04:45:56 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 07255AE56 for ; Sun, 3 Jul 2022 01:45:52 -0700 (PDT) Received: from localhost.localdomain.localdomain (unknown [10.2.5.46]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxT+MtV8FigMQFAA--.17307S17; Sun, 03 Jul 2022 16:45:44 +0800 (CST) From: Jianmin Lv To: Thomas Gleixner , Marc Zyngier Cc: linux-kernel@vger.kernel.org, Hanjun Guo , Lorenzo Pieralisi , Jiaxun Yang , Huacai Chen Subject: [PATCH V14 15/15] LoongArch: Fix irq number for timer and ipi Date: Sun, 3 Jul 2022 16:45:32 +0800 Message-Id: <1656837932-18257-16-git-send-email-lvjianmin@loongson.cn> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1656837932-18257-1-git-send-email-lvjianmin@loongson.cn> References: <1656837932-18257-1-git-send-email-lvjianmin@loongson.cn> X-CM-TRANSID: AQAAf9DxT+MtV8FigMQFAA--.17307S17 X-Coremail-Antispam: 1UD129KBjvJXoW7CrWkXr4kWr17ArWUCr15Arb_yoW8Gr4kp3 y7Ca1DJrWrGrn5Xa4vy3ykWryDAas7Gw1ag3WvvFyfCr1Iqr10qw48Jr9rXF12qayfJ3y0 gF9Yqry0va1UAaUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvI1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AE w4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2 IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2 z280aVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVCY1x0267AKxVW8Jr0_Cr1UM2AIxVAIcx kEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v2 6r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2 Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxkIecxEwVCm-wCF04k20xvY0x0EwIxG rwCF04k20xvE74AGY7Cv6cx26ryrJr1UJwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c 02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_ Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7 CjxVAFwI0_Gr1j6F4UJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAF wI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVFxhVjvjDU0xZFpf 9x0JUdHUDUUUUU= X-CM-SenderInfo: 5oymxthqpl0qxorr0wxvrqhubq/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 After supporting LoongArch CPUINTC controller driver, the irq number of interrupt source from CPUINTC is needed to transfer from CPUINTC irqdomain, so use api of CPUINTC to transfer it. Signed-off-by: Jianmin Lv --- arch/loongarch/kernel/irq.c | 2 +- arch/loongarch/kernel/time.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/loongarch/kernel/irq.c b/arch/loongarch/kernel/irq.c index 7474a22..8f06364 100644 --- a/arch/loongarch/kernel/irq.c +++ b/arch/loongarch/kernel/irq.c @@ -104,7 +104,7 @@ void __init init_IRQ(void) init_vec_parent_group(); irqchip_init(); #ifdef CONFIG_SMP - ipi_irq = EXCCODE_IPI - EXCCODE_INT_START; + ipi_irq = get_ipi_irq(); irq_set_percpu_devid(ipi_irq); r = request_percpu_irq(ipi_irq, loongson3_ipi_interrupt, "IPI", &ipi_dummy_dev); if (r < 0) diff --git a/arch/loongarch/kernel/time.c b/arch/loongarch/kernel/time.c index fe68238..4a04aa6 100644 --- a/arch/loongarch/kernel/time.c +++ b/arch/loongarch/kernel/time.c @@ -132,7 +132,7 @@ int constant_clockevent_init(void) struct clock_event_device *cd; static int timer_irq_installed = 0; - irq = EXCCODE_TIMER - EXCCODE_INT_START; + irq = get_timer_irq(); cd = &per_cpu(constant_clockevent_device, cpu); -- 1.8.3.1