From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46886C43141 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 201A12075E for ; Fri, 15 Nov 2019 09:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727031AbfKOJYx (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 Content-Type: text/plain 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 */ -- 2.21.0