From patchwork Mon Apr 18 01:49:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Shijie X-Patchwork-Id: 8864181 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 71AE0BF29F for ; Mon, 18 Apr 2016 01:52:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C3F7201ED for ; Mon, 18 Apr 2016 01:52:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C58002017D for ; Mon, 18 Apr 2016 01:52:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aryKl-0003Hb-TH; Mon, 18 Apr 2016 01:50:39 +0000 Received: from mail-am1on0096.outbound.protection.outlook.com ([157.56.112.96] helo=emea01-am1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aryKh-0003FQ-Tk for linux-arm-kernel@lists.infradead.org; Mon, 18 Apr 2016 01:50:37 +0000 Received: from DB4PR07CA015.eurprd07.prod.outlook.com (10.242.229.25) by DB5PR07MB1670.eurprd07.prod.outlook.com (10.166.13.11) with Microsoft SMTP Server (TLS) id 15.1.477.5; Mon, 18 Apr 2016 01:50:11 +0000 Received: from DB3FFO11FD004.protection.gbl (2a01:111:f400:7e04::179) by DB4PR07CA015.outlook.office365.com (2a01:111:e400:9828::25) with Microsoft SMTP Server (TLS) id 15.1.477.3 via Frontend Transport; Mon, 18 Apr 2016 01:50:11 +0000 Authentication-Results: spf=pass (sender IP is 217.140.96.140) smtp.mailfrom=arm.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 217.140.96.140 as permitted sender) receiver=protection.outlook.com; client-ip=217.140.96.140; helo=nebula.arm.com; Received: from nebula.arm.com (217.140.96.140) by DB3FFO11FD004.mail.protection.outlook.com (10.47.216.93) with Microsoft SMTP Server (TLS) id 15.1.472.8 via Frontend Transport; Mon, 18 Apr 2016 01:50:10 +0000 Received: from sha-win-210.asiapac.arm.com (10.1.2.79) by mail.arm.com (10.1.105.66) with Microsoft SMTP Server id 14.3.279.2; Mon, 18 Apr 2016 02:50:00 +0100 From: Huang Shijie To: Subject: [PATCH] arm64: mm: remove the redundant code Date: Mon, 18 Apr 2016 09:49:56 +0800 Message-ID: <1460944196-11780-1-git-send-email-shijie.huang@arm.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131054178108075106; (7f4fb8e1-17aa-4746-8602-08d27e8c8cd0); () X-Forefront-Antispam-Report: CIP:217.140.96.140; IPV:NLI; CTRY:GB; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(50986999)(92566002)(106466001)(87936001)(50466002)(48376002)(1096002)(86362001)(11100500001)(450100001)(4326007)(50226001)(5003940100001)(229853001)(5003600100002)(1220700001)(2351001)(5008740100001)(19580405001)(19580395003)(36756003)(189998001)(104016004)(77096005)(110136002)(47776003)(33646002)(6806005)(2906002)(586003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR07MB1670; H:nebula.arm.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD004; 1:qoN9ngXG76Xfj+qRLr2ecJdZmXq4ocjssOaNskstkhMSZpsT/GC0ggfDLIOSqZdHG2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2eYWz6w40Z2x2VFzFWk11D+TXwWGNjbg== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:DB5PR07MB1670; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB1670; 25:1gngyWby46SZOwlWuIpExlgDkgI4y29bDGBhHX00a2hKrivNViBRHipeWMtQqM5/H/3VUwtcx863tQKU4Qn3k//CkMU8QquizHusndeenXVQ99g9ufZXEIBLjfW97K1Dkwy8fUK84i7oTaZZIKUQoR1Z90Al8quMbQalNTiopap9j+CoAbtG2qC80mJL3PfCDhXz0/DWXJTpqkDSHrDKeB12OKGEIYHE7W3kX/RJe+46MUdAor8ps2rAnpcpGvW4o2GnSY5/NZ6AtfKjmO4LM+m6CP44/f7VS2YDb8jIPb6gHMVE6K1rkPNy33GeGnd5TckIsG510bMI1JZ9uh9D5/v+IDSrVjpb7cG33LhPsJUvSTjWmKDWew0ycOShwxjoWj4kzG7ZF4tT9pD7+Yo5n7V2/ALlFJzNsyWGHNK+m75cA86xPu+/cYTWbGJMLbnu1viWZ/nQmys/U373VGlof9d0VTnHXySvSDfOIBb4e9Js6mTkHqo/axWo5OKq032IDeylvUvQvvQC4K1YdCNtiLByJwmG2JHVge7UZssAUiWQSN3fuCgTh1AjAzrrFthgiBPHt/JfzJOYnIblr1Pc1IMuZq6F1EIEYV1r+WDY8ukjp8IexmSRKNZm5LRiDh2to0V1EpXiLXyEQghu8aYs+4XcYk5c508WtKLK8+c0YEo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13024025)(13023025)(13016025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DB5PR07MB1670; BCL:0; PCL:0; RULEID:(400006); SRVR:DB5PR07MB1670; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB1670; 4:t62PW9NP2ciZt4T78rYoIrHSOycL+5LsBlr8qK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biXAEGpVJOjOTmi7jTiYE9/g0sEAIwijCwqaYhzF4JZgU62UQCcDSUTlVmKLMzZqM+Sy6VIa8UOYmfxicX0LjVNSxtVdIKYTPPxPGV6N4d1GSdC3/pU2nwpokTYvdmjnC4D9VqHShGHfSmey0Sb3BVPj9Uvd0NXMZeU/W0vwnN2OSJ2Hs4XJ8FZ8joh5P9ryeVX5XaGnsk/TlPn63+oxbrJZmzuMkPwfhBjaH0SSdvmZggU5+RsfeHPmbTQ9ChnZdFv/oy76/fGmJtIJtKKQAmE/Ih/1d3jbEHhkgSKrqRYlOQqeYpbLGBUHYEYG7/SE63uSJ/pl0EyJxx4OKVUvQRyJp0Kq7WQULaiwDOM87Ulzsw5x3tYM2We X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB1670; 5:aLSQukGaag8Jmh5FITJ6KZDNVBySH8V57bUCktuQlC3aVkPnwXEpxuClttNOtK06ekSl9UxNqk0WASo31yxvqrjXjoqa+zx7gt9yri10ThugkHOc2zJ6IclwxkoVeJnNHkkgq8lf0xIJBLdn9R3NRNZv8CZSC/pNVKVkx+O0xRk=; 24:pzkZzyRk5WH1gYeb5hCHYTa71dJ+E58Q9/c8X5rLXVsr8BQ4kLtTWLSREHYP8f6g0NJcFlMz9vRdyZN1CL/6ZnXBIZH2JGtGo7v5/jp2FKI=; 7:jf6J8atAy5oMnAwH1IQbXhdC/5+fzJn9LkUqP1vK4PcHTLq15twr5zR8nR5gDTzt4cR9530ITktmrxaq3QHwNLMAj6kwoItF3qE/EalAKNJ+P91o+R553SOu/S9okkK3z+Pca56OWcN6v6lv93ipfDwdoTlNFxx87bptMOF7MNLBahbiPnc8ZrM9plgDYfht SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2016 01:50:10.4331 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[217.140.96.140]; Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB1670 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160417_185036_294760_734A2061 X-CRM114-Status: GOOD ( 10.17 ) X-Spam-Score: -1.2 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Huang Shijie , nd@arm.com, will.deacon@arm.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We already re-enable interrupts where necessary in the entry code, so there is no need to do it again in do_page fault. This patch removes the redundant code. Signed-off-by: Huang Shijie Acked-by: Catalin Marinas --- arch/arm64/mm/fault.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index 95df28b..bdc193c 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/arm64/mm/fault.c @@ -212,10 +212,6 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr, tsk = current; mm = tsk->mm; - /* Enable interrupts if they were enabled in the parent context. */ - if (interrupts_enabled(regs)) - local_irq_enable(); - /* * If we're in an interrupt or have no user context, we must not take * the fault.