Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp356691yba; Fri, 12 Apr 2019 05:08:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9Nh36jRIt+uPf7wfzTjamSmSJc0OyAZ9m62+KL9IulR0vZkMQfoZl5y6VDDEIDyECKBGl X-Received: by 2002:a17:902:1007:: with SMTP id b7mr33109795pla.48.1555070907054; Fri, 12 Apr 2019 05:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555070907; cv=none; d=google.com; s=arc-20160816; b=uJAqRIU4AdS1MwXNL5N/oPqb9zW3aB7PNleq3q7ZkomMQUQmW0A5QZLkfUXgqS5wNC sxZZOxi/Y0mPb1t95KpH6QNc01yliFt3Otr7EtC5WqI5f4Vu+Y0uZM/+yo4mV0vRfVek bWGcgFskfUjywlb4XXNHHNMv8ATJDIHt8d0Jrz1s5n6FcYnKGQNL/1/lJfJkTz84wvJR 8It3g8fRbik1JqQw7VenEW0tppfaTHQFlX84FDh1WC/1cmh/995opwPIFUw3+yrlBjWX 7cB84ulR9vMZt7A+Z5CCd56uQ94SWAZjcplnW38E5Np0SnWtPRdcjaoWOAfGc8FpQpLm rffw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=o3VWmugJ+jTdQa2DSc2NQLimXMv+7KT8GEcM/xjyyfo=; b=Wa/S0j9y+GNYusXQCbz/puPveuKl6/Nz15rpOJd/UJC3tJ9cRloOChI0qIxNSId2EZ Hzeh6A1zzutqNkZo1XXLE+9FHI1kP5LUlE1RltmJu8jvSKnJcsLOliPJUvDLzTZVozLz QF2hrO9XhD6uhlIZ0JarqTARm1LdlssVgDMFSQs6EH0KihNAotkE0rDagLs7kD+fQfiJ kKMKPoq7uIPUYRi1xIlOKZnjjWX/5bhMr58xbPScvjxyfwye8Vkhw4NLJ/V1/qv8IH1k b51uFB6dfSroQtmbWGfRYgf4tA1eirelov+PzZuoeyuZtYGcf5UoLK3Tb+sBDffe3sHg bJbw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si37434415plh.289.2019.04.12.05.08.10; Fri, 12 Apr 2019 05:08: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727272AbfDLMGh (ORCPT + 99 others); Fri, 12 Apr 2019 08:06:37 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6174 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726244AbfDLMGf (ORCPT ); Fri, 12 Apr 2019 08:06:35 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 236263508B3631F48BC1; Fri, 12 Apr 2019 20:06:30 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.408.0; Fri, 12 Apr 2019 20:06:20 +0800 From: Xiongfeng Wang To: , , , , CC: , Subject: [RFC PATCH 1/3] Revert "arm64: debug: remove unused local_dbg_{enable, disable} macros" Date: Fri, 12 Apr 2019 20:04:57 +0800 Message-ID: <1555070699-3685-2-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1555070699-3685-1-git-send-email-wangxiongfeng2@huawei.com> References: <1555070699-3685-1-git-send-email-wangxiongfeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 2572214170fb95370be21915c0397f4b6a27e7e3. This is a preparation for the following patch. We need to enable debug in _sdei_handler, so let's revert this patch. Signed-off-by: Xiongfeng Wang --- arch/arm64/include/asm/irqflags.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/include/asm/irqflags.h b/arch/arm64/include/asm/irqflags.h index 43d8366..0a54c45 100644 --- a/arch/arm64/include/asm/irqflags.h +++ b/arch/arm64/include/asm/irqflags.h @@ -140,5 +140,9 @@ static inline int arch_irqs_disabled_flags(unsigned long flags) return res; } + +#define local_dbg_enable() asm("msr daifclr, #8" : : : "memory") +#define local_dbg_disable() asm("msr daifset, #8" : : : "memory") + #endif #endif -- 1.7.12.4