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=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 2FD27C433FE for ; Thu, 3 Dec 2020 18:21:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D37BC217BA for ; Thu, 3 Dec 2020 18:21:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387734AbgLCSUq (ORCPT ); Thu, 3 Dec 2020 13:20:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgLCSUp (ORCPT ); Thu, 3 Dec 2020 13:20:45 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88240C061A4F; Thu, 3 Dec 2020 10:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=cD/gPx1zDgnIQ7RA23nlOJGpnoyXojHHIs8a72pYbw4=; b=3VYA0JzUAEg95sqgTyYJhvZ7Hz 59/T3uMOZY3ab1Tvd7FE4IQaahiB7jyRSCYrVuzGdXrqOHxZX9nPLmE51u4KqoTx4M7y2uOBLI8w6 HTdqCVq0t1Xe3YprDlwDxqtS6UA4Ku+bvgtvNPuV4QubdWzwuO3at+Jx3NtP4O7Z9EoyPYsWCL+b4 R7s4/eUSuVJ9z9IQgRBT/cj1/WA9AZ7Yp38t+L6ICx75Dr6qPuzeyQ1xp9AcI+t4+Q6/+k6kNzVM0 17EgiADhpRJ3kDem5S4zhEayqRf6xMuy4Q+xpnM70Znw4oIlAyimlv0JV5g47hBiiQ4/b8dhg2rtn nUbr3jRA==; Received: from [2601:1c0:6280:3f0::1494] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kktD1-0001Se-Cw; Thu, 03 Dec 2020 18:20:03 +0000 Subject: Re: [PATCH] drivers: acpi: add opt-out of Apple-specific property parsing To: "Enrico Weigelt, metux IT consult" , linux-kernel@vger.kernel.org Cc: linux-acpi@vger.kernel.org References: <20201203174453.12084-1-info@metux.net> From: Randy Dunlap Message-ID: <88bb006f-27bd-7be6-19b5-6b879f1df131@infradead.org> Date: Thu, 3 Dec 2020 10:19:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201203174453.12084-1-info@metux.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/3/20 9:44 AM, Enrico Weigelt, metux IT consult wrote: > Most x86 machines aren't Apple machines, especially VMs. > Therefore allow opt-out, making the kernel a few KBs smaller, > eg. for embedded or high-density VMs. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/acpi/Kconfig | 9 +++++++++ > drivers/acpi/Makefile | 2 +- > drivers/acpi/internal.h | 2 +- > 3 files changed, 11 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > index edf1558c1105..cc47de4f2b18 100644 > --- a/drivers/acpi/Kconfig > +++ b/drivers/acpi/Kconfig > @@ -79,6 +79,15 @@ config ACPI_DEBUGGER_USER > > endif > > +config ACPI_APPLE > + bool "Apple ACPI properties support" > + default y if X86 > + help > + Extraction of Apple-specific ACPI properties. > + > + Say N if you're sure the kernel won't be used on an Apple machine > + and wanna save a few kb of memory. (embedded or high-density VMs) want to As I have said before, don't use "kb". It means kilobits. We don't normally measure memory in kilobits. Did you read all of my previous email? > + > config ACPI_SPCR_TABLE > bool "ACPI Serial Port Console Redirection Support" > default y if X86 -- ~Randy