From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Tue, 7 Apr 2020 20:57:27 -0600 Subject: [PATCH v3 17/29] x86: Move acpi_table header to main include/ directory In-Reply-To: <20200403125803.GD3676135@smile.fi.intel.com> References: <20200330231305.130488-1-sjg@chromium.org> <20200330171226.v3.17.If8795289f9cb41804659b2b37b17185f588b3175@changeid> <20200403125803.GD3676135@smile.fi.intel.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Andy, On Fri, 3 Apr 2020 at 06:58, Andy Shevchenko wrote: > > On Mon, Mar 30, 2020 at 05:12:53PM -0600, Simon Glass wrote: > > This file is potentially useful to other architectures saddled with ACPI > > so move most of its contents to a common location. > > It's not just potentially, it's definitely useful. > But this makes me think, why we don't incorporate ACPICA headers as is? Due to code style and the vast amount of unused code. > > > > > Signed-off-by: Simon Glass > > Reviewed-by: Bin Meng > > Reviewed-by: Wolfgang Wallner > > --- > > > > Changes in v3: > > - Add forward declarations for the functions > > - Move acpi_table.h to include/acpi > > - Update commit message to say that we move most of its contents > > > > Changes in v2: None > > > > arch/x86/cpu/baytrail/acpi.c | 2 +- > > arch/x86/cpu/cpu.c | 2 +- > > arch/x86/cpu/quark/acpi.c | 2 +- > > arch/x86/cpu/tangier/acpi.c | 4 +- > > arch/x86/include/asm/acpi_table.h | 381 +---------------------------- > > arch/x86/lib/acpi.c | 2 +- > > arch/x86/lib/acpi_s3.c | 2 +- > > arch/x86/lib/acpi_table.c | 2 +- > > arch/x86/lib/tables.c | 2 +- > > arch/x86/lib/zimage.c | 2 +- > > include/acpi/acpi_table.h | 394 ++++++++++++++++++++++++++++++ > > lib/efi_loader/efi_acpi.c | 2 +- > > 12 files changed, 412 insertions(+), 385 deletions(-) > > create mode 100644 include/acpi/acpi_table.h > > Regards, Simon