From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: Userspace ACPI interpreter ( was RE: [RFC] dev_acpi: support for userspace access to acpi) Date: Fri, 29 Oct 2004 06:58:58 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20041029045858.GL11384@wotan.suse.de> References: <3ACA40606221794F80A5670F0AF15F84041ABFFA@pdsmsx403> <418085B0.30208@intel.com> <20041028152404.GB7902@thunk.org> <1099025292.5402.200.camel@d845pe> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1099025292.5402.200.camel@d845pe> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Len Brown Cc: Theodore Ts'o , Luming Yu , Bjorn Helgaas , Robert Moore , Alex Williamson , linux-kernel , ACPI Developers List-Id: linux-acpi@vger.kernel.org > [ It would be sort of neat if we could built the core ACPI support in > some kind of modular way such that that we could have it at boot-time, > if we need it, but optionally unload it at run-time if it turned out the > target system didn't need it. ] It would be possible with some Makefile hacks. Basically you would need to objcopy the ACPI object files and rename .text*/.data* to a different acpi specific name. Then you can give it an special area in the vmlinux.lds and possibly free it. I agree with you that it's better kept in the kernel. > Static Kernel Size: > text data bss dec hex filename > 144533 5608 4920 155061 25db5 drivers/acpi/built-in.o Hmm, this used to be smaller, no? Perhaps someone going over bloat-o-meter[1] output to an older version would be useful. There is probably some low hanging fruit. -Andi [1] ftp://ftp.firstfloor.org/pub/ak/perl/bloat-o-meter ------------------------------------------------------- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/