From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tcdPM3pdSzDvtd for ; Mon, 12 Dec 2016 20:50:31 +1100 (AEDT) Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tcdPL72Wvz9t0v for ; Mon, 12 Dec 2016 20:50:30 +1100 (AEDT) Received: by mail-pf0-x243.google.com with SMTP id i88so286076pfk.2 for ; Mon, 12 Dec 2016 01:50:30 -0800 (PST) From: Balbir Singh To: linuxppc-dev@ozlabs.org Cc: Balbir Singh , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Nicholas Piggin Subject: [powerpc/nmi: RFC 1/2] Merge IPI and DEFAULT priorities Date: Mon, 12 Dec 2016 20:50:02 +1100 Message-Id: <20161212095003.1885-2-bsingharora@gmail.com> In-Reply-To: <20161212095003.1885-1-bsingharora@gmail.com> References: <20161212095003.1885-1-bsingharora@gmail.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , We merge IPI and DEFAULT priorities to the same value. The idea is to keep interrupts enabled even in lazy soft-disabled mode. Instead of storing the IPI and irq separately, we keep the levels same so that we deal with only one of them Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Signed-off-by: Balbir Singh --- arch/powerpc/include/asm/xics.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h index f0b2385..d6cb9a0 100644 --- a/arch/powerpc/include/asm/xics.h +++ b/arch/powerpc/include/asm/xics.h @@ -14,17 +14,13 @@ /* Want a priority other than 0. Various HW issues require this. */ #define DEFAULT_PRIORITY 5 -/* - * Mark IPIs as higher priority so we can take them inside interrupts - * FIXME: still true now? - */ -#define IPI_PRIORITY 4 +#define IPI_PRIORITY 5 /* The least favored priority */ #define LOWEST_PRIORITY 0xFF /* The number of priorities defined above */ -#define MAX_NUM_PRIORITIES 3 +#define MAX_NUM_PRIORITIES 2 /* Native ICP */ #ifdef CONFIG_PPC_ICP_NATIVE -- 2.9.3