Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1504534imm; Wed, 15 Aug 2018 19:57:27 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw3mc7oB4/dTKb423GyMmZKVmx2xI5RUVt5sWLtv407SlZNLkQiOUFvaa87l5DJmzpecaTG X-Received: by 2002:a65:5a8a:: with SMTP id c10-v6mr26522332pgt.389.1534388247275; Wed, 15 Aug 2018 19:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534388247; cv=none; d=google.com; s=arc-20160816; b=MVeRzdW7Llx/UIb27UP8pHdw6GW0iUpP+uNAqN2eRnYWzB+hNril2g+I/CMJpSk2Rx O8x5d+5udB1rTPwBLckHQ3F8rWv8cCfe6OBX4xLhLnl41uY5oPhPyoBWu9/EZonGmKLS TAey75E17u2OrQYG0221OiAs/mlMYLoyW7WxJ879JwDPljRd7T2b/v9yMztc/cN/ynA4 5GcpsAQYeUqVh0pjV5UO4xLkfPAKPmUHbtxxU/CRvxxc1mvbW6qHtX+zYouMjYyShDAz +HGYD9XbxSDhxYiVepa8oWZNOKHndT6HhR1jM6pMYXPmCi4dok6KqOt7HRdtxsWuCk0Z s3NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=W1oiNA/bIUwXOtHXLzgZDTix1BHvHcGONKbHGpOY9Mk=; b=GomE3qN6kYO9OvE0ZFFUBl1e7gQUfr2CXkgMSjTdtxDivWjIvOLFhSGFQ82oT/01ky XmRRYia319x+jaHcYFncOCbWtlpL3wheL7cLY/oOdlekKdmRrvqF2KVeIeU7ERKTdiXJ qPXK1lLrpGOt4Iut9BlD74kkfZU0jvvkdxcrDqE+E8iDbONllfUIjWlj7NZnF4NfBB4Y 0u00kwGfxGMAPjd6m084TYWVqB8FMSLyIZk0O6KxJMtZxF54i6iYugUHNOZNBCOAkPJi BueHrSpTOFkX+4iuH6imlFX8Hd3K+zjM1EzXyXOrabJn/KX88QZDAE3I4GLOWDomLpDh H7bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=lb3cCcSl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i21-v6si24036334pgg.513.2018.08.15.19.57.09; Wed, 15 Aug 2018 19:57:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=lb3cCcSl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731323AbeHPCuu (ORCPT + 99 others); Wed, 15 Aug 2018 22:50:50 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:22885 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbeHPCuu (ORCPT ); Wed, 15 Aug 2018 22:50:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1534377379; x=1565913379; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=i1vnyqmho6i8If9KEHE9BxefvqbQcJrPI+HNnleoCt4=; b=lb3cCcSlV8WHfLgRBm0h6SnXjj5b3T/J9SOu7FyGftZ++MvFkawTExCV VPErAxbYqwEijWXIps5oOk0Vf/Z2c7ydbT4k43zpilgxvwAHT6sAHzZ5i QJjZqegxYy7g3VoNiIgB9G7cpxuzj7grXlN+r1iWEPvjcCkIs8EJMzEwF qso3ckvwHEOPp4HK+yLWVXrFfvXX68Lull0erhwsvTjxtebMg98gSA3IG MdD+aqG0LcrEqiehA9vSrDNs8ApCiOSqXK43KuNqyKHmS6qqT4lQJH2O4 OxILmM+UAekJi+Icr0sC6fxDeuXbP1HC1PzKt/QFHNsc96xr9AQMM4JU6 w==; X-IronPort-AV: E=Sophos;i="5.53,245,1531756800"; d="scan'208";a="89176689" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 16 Aug 2018 07:56:19 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 15 Aug 2018 16:44:17 -0700 Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 15 Aug 2018 16:56:19 -0700 From: Atish Patra To: palmer@sifive.com, linux-riscv@lists.infradead.org, mark.rutland@arm.com, anup@brainfault.org, hch@infradead.org Cc: atish.patra@wdc.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, Damien.LeMoal@wdc.com Subject: [RFC PATCH 4/5] RISC-V: Move interrupt cause declarations to irq.h Date: Wed, 15 Aug 2018 16:56:16 -0700 Message-Id: <1534377377-70108-5-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534377377-70108-1-git-send-email-atish.patra@wdc.com> References: <1534377377-70108-1-git-send-email-atish.patra@wdc.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CPU hotplug code in smpboot requires interrupt cause to identify the cause of cpu wakeup. Move the IRQ cause declarations to appropriate header file. Signed-off-by: Atish Patra --- arch/riscv/include/asm/irq.h | 7 +++++++ arch/riscv/kernel/irq.c | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/riscv/include/asm/irq.h b/arch/riscv/include/asm/irq.h index 996b6fbe..abf2e4e3 100644 --- a/arch/riscv/include/asm/irq.h +++ b/arch/riscv/include/asm/irq.h @@ -20,6 +20,13 @@ void riscv_timer_interrupt(void); void riscv_software_interrupt(void); +/* + * Possible interrupt causes: + */ +#define INTERRUPT_CAUSE_SOFTWARE 1 +#define INTERRUPT_CAUSE_TIMER 5 +#define INTERRUPT_CAUSE_EXTERNAL 9 + #include #endif /* _ASM_RISCV_IRQ_H */ diff --git a/arch/riscv/kernel/irq.c b/arch/riscv/kernel/irq.c index 0cfac48a..0dd2df01 100644 --- a/arch/riscv/kernel/irq.c +++ b/arch/riscv/kernel/irq.c @@ -10,13 +10,6 @@ #include /* - * Possible interrupt causes: - */ -#define INTERRUPT_CAUSE_SOFTWARE 1 -#define INTERRUPT_CAUSE_TIMER 5 -#define INTERRUPT_CAUSE_EXTERNAL 9 - -/* * The high order bit of the trap cause register is always set for * interrupts, which allows us to differentiate them from exceptions * quickly. The INTERRUPT_CAUSE_* macros don't contain that bit, so we -- 2.7.4