From patchwork Fri Nov 15 09:24:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruan Shiyang X-Patchwork-Id: 11245469 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 293D61393 for ; Fri, 15 Nov 2019 09:24:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0649820740 for ; Fri, 15 Nov 2019 09:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727048AbfKOJYx (ORCPT ); Fri, 15 Nov 2019 04:24:53 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:16850 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725829AbfKOJYx (ORCPT ); Fri, 15 Nov 2019 04:24:53 -0500 X-IronPort-AV: E=Sophos;i="5.68,307,1569254400"; d="scan'208";a="78503839" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 15 Nov 2019 17:24:47 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id C99C64CE1BE4; Fri, 15 Nov 2019 17:16:31 +0800 (CST) Received: from localhost.localdomain (10.167.225.140) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 15 Nov 2019 17:24:52 +0800 From: Shiyang Ruan To: , , CC: , , , , , , , Cao jin , Subject: [RFC PATCH] x86/acpi: Drop duplicate BOOT table initialization Date: Fri, 15 Nov 2019 17:24:24 +0800 Message-ID: <20191115092424.17356-1-ruansy.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 X-Originating-IP: [10.167.225.140] X-yoursite-MailScanner-ID: C99C64CE1BE4.A8462 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: ruansy.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Cao jin ACPI BOOT table is initialized in both acpi_boot_table_init & acpi_boot_init of setup_arch, but its usage is quite late at the end of start_kernel. It should be safe to drop one of them. Since it is less related with table init, drop it from there. Signed-off-by: Cao jin Cc: Signed-off-by: Shiyang Ruan --- arch/x86/kernel/acpi/boot.c | 2 -- 1 file changed, 2 deletions(-) It existed since git repo is built, so it might has its reason? The patch is not tested since I don't have BOOT table in my firmware. diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 04205ce127a1..ca1c15bb0b48 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -1558,8 +1558,6 @@ void __init acpi_boot_table_init(void) return; } - acpi_table_parse(ACPI_SIG_BOOT, acpi_parse_sbf); - /* * blacklist may disable ACPI entirely */