Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp76211pxb; Tue, 2 Mar 2021 19:47:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZyn2vpx1toiJuvBkPXW0CyhboPuk6ktbMJnJFwOdDl0+RER9X7/tI6mLIwUC4Q06kQTlF X-Received: by 2002:a17:906:a090:: with SMTP id q16mr23633120ejy.236.1614743251624; Tue, 02 Mar 2021 19:47:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614743251; cv=none; d=google.com; s=arc-20160816; b=hi5Bng6anR8u9Oud7gYOLQa+Z461G4tsfM2dLeVWSAkxMSJzmh8IDWPiCg1uGrUFwX 5QX3ngMn7NiEoxLiToLmLyrKDyJev63YV9AAUU4Y0Ui8spDkIV7pqlqXdWCqFRXkeRIo AsoEZuImwQoniruxnKO2l6H17NXxgwuLG/8G0Kh/tCtreZ/mVXNex1tYXowFsvA+Z3ng u/vrh7Kj8puYRBrpfG2oMOIqjfY4H2B1ZhBw52miD2a6Foq9FfGsAslYvAorl9Orut/z NIca+Lc+J15SkeU6vzYAou5g+dEH0gvmcaVNp6ade345AbpZ/krJmYu7tk7eJAhCDSXB 8HUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=tqKw0zCqbYedqJIkqTtwl4b+MTVgwK8K66vZ7QEalHY=; b=M5urN0Psb6yX2E2+nSSYaeeHS4d69KxEsnfYE551KEaOXHiGLB1zB5PjUNXfu/HLq4 eZJktH4t4zF6ud99frf/kvcM8FaZhgmYmmSvwrsOuJVu0fTEwVWxvYT0wBe6II2FAn5o 5VX6TQ7afEOlpM+ty/XdkdDpan3Ya3eA6xSgIb0xe7fye8JGj5nLHZhewJSEAW929QAP nNkiJNKRFuFrR5GOVuz2gGk+fqretf4pEMrEosbPEegcZ7DDRE2iULlbuOTYLUfvooD/ 9kcguY8qUbXQ3V/vlPY7XNGG7uYXMUfNzI7ZeC01J8f6MJPI5it87iKvCvDYbOP8tRpT XL+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OXGPx7au; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be2si3353609edb.153.2021.03.02.19.47.09; Tue, 02 Mar 2021 19:47:31 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=OXGPx7au; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236321AbhCAOaO (ORCPT + 99 others); Mon, 1 Mar 2021 09:30:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:56744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233264AbhCAOaK (ORCPT ); Mon, 1 Mar 2021 09:30:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E189E64DF1; Mon, 1 Mar 2021 14:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614608970; bh=En1eyk16wHgUtzj4bgZ6Lkm3+BcNkeqwMyBsqff5YVU=; h=From:To:Cc:Subject:Date:From; b=OXGPx7au4zoBbOrwHe2jnofxmBHdN4aamSiTgzpqK4KIuDZo88YLBPceJgG7j1C1K /6RannAhzjdydeHtqvbqEK66DqPXuPSFcZLf+PcqELnIJ5+I//1W19FPfl1NVl/YQj kXWcMY/BuWyA9SSPhfRl5ICU/DCUw8XKePBvmNs+BrHkxgjDKst6NGYbq3rjorl0Lh 7d7hex16pmBcCijQXdqjgEsoFPGz7CyoSWcMMlKGTKC6gjRXDdGA8p1AQyoaGRr4Y+ FsczAFUGC17IJzc9oMqSDS8HXVGP+Xf6IghdM0ytNT7ajoc0gGB9TfkvULFbIxAffr A4c0uzbWpqavA== From: guoren@kernel.org To: guoren@kernel.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-arch@vger.kernel.org, Guo Ren , Peter Zijlstra , Thomas Gleixner , Arnd Bergmann , Linus Torvalds , Palmer Dabbelt , Anup Patel , Atish Patra , Christoph Hellwig Subject: [PATCH 1/4] irqchip: riscv: Using CPUHP_AP_ONLINE_DYN Date: Mon, 1 Mar 2021 14:28:19 +0000 Message-Id: <1614608902-85038-1-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren Remove RISC-V irqchip custom definitions in hotplug.h: - CPUHP_AP_IRQ_RISCV_STARTING - CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING For coding convention. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Arnd Bergmann Cc: Linus Torvalds Cc: Palmer Dabbelt Cc: Anup Patel Cc: Atish Patra Cc: Christoph Hellwig Tested-by: Guo Ren Signed-off-by: Guo Ren Link: https://lore.kernel.org/lkml/CAHk-=wjM+kCsKqNdb=c0hKsv=J7-3Q1zmM15vp6_=8S5XfGMtA@mail.gmail.com/ --- drivers/irqchip/irq-riscv-intc.c | 2 +- drivers/irqchip/irq-sifive-plic.c | 2 +- include/linux/cpuhotplug.h | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-riscv-intc.c b/drivers/irqchip/irq-riscv-intc.c index 8017f6d..2c37f3a 100644 --- a/drivers/irqchip/irq-riscv-intc.c +++ b/drivers/irqchip/irq-riscv-intc.c @@ -125,7 +125,7 @@ static int __init riscv_intc_init(struct device_node *node, return rc; } - cpuhp_setup_state(CPUHP_AP_IRQ_RISCV_STARTING, + cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "irqchip/riscv/intc:starting", riscv_intc_cpu_starting, riscv_intc_cpu_dying); diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c index 6f432d2..f499f1b 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -375,7 +375,7 @@ static int __init plic_init(struct device_node *node, */ handler = this_cpu_ptr(&plic_handlers); if (handler->present && !plic_cpuhp_setup_done) { - cpuhp_setup_state(CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING, + cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "irqchip/sifive/plic:starting", plic_starting_cpu, plic_dying_cpu); plic_cpuhp_setup_done = true; diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index f14adb8..14f49fd 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -103,8 +103,6 @@ enum cpuhp_state { CPUHP_AP_IRQ_ARMADA_XP_STARTING, CPUHP_AP_IRQ_BCM2836_STARTING, CPUHP_AP_IRQ_MIPS_GIC_STARTING, - CPUHP_AP_IRQ_RISCV_STARTING, - CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING, CPUHP_AP_ARM_MVEBU_COHERENCY, CPUHP_AP_MICROCODE_LOADER, CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING, -- 2.7.4