public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] x86: Drop support for /proc files when !CONFIG_PROC_FS
@ 2014-02-22 19:08 Josh Triplett
  2014-02-22 19:09 ` [PATCH 2/2] x86: Support compiling out human-friendly processor feature names Josh Triplett
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Josh Triplett @ 2014-02-22 19:08 UTC (permalink / raw)
  To: Andi Kleen, Andrew Morton, Borislav Petkov, Feng Tang,
	H. Peter Anvin, Ingo Molnar, Jacob Shin, Jan Beulich,
	Kirill A. Shutemov, Paul Gortmaker, Peter Zijlstra, Qiaowei Ren,
	Rob Landley, Seiji Aguchi, Stephane Eranian,
	Suravee Suthikulpanit, Thomas Gleixner, Thomas Renninger,
	linux-kernel, x86

arch/x86/kernel/cpu/proc.c only exists to support files in /proc; omit that
file when compiling without CONFIG_PROC_FS.

Saves 645 additional bytes on 32-bit x86 when !CONFIG_PROC_FS:

add/remove: 0/5 grow/shrink: 0/0 up/down: 0/-645 (-645)
function                                     old     new   delta
c_stop                                         1       -      -1
c_next                                        11       -     -11
cpuinfo_op                                    16       -     -16
c_start                                       24       -     -24
show_cpuinfo                                 593       -    -593

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
 arch/x86/kernel/cpu/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
index 7fd54f0..64038d8 100644
--- a/arch/x86/kernel/cpu/Makefile
+++ b/arch/x86/kernel/cpu/Makefile
@@ -13,10 +13,12 @@ nostackp := $(call cc-option, -fno-stack-protector)
 CFLAGS_common.o		:= $(nostackp)
 
 obj-y			:= intel_cacheinfo.o scattered.o topology.o
-obj-y			+= proc.o capflags.o powerflags.o common.o
+obj-y			+= capflags.o powerflags.o common.o
 obj-y			+= rdrand.o
 obj-y			+= match.o
 
+obj-$(CONFIG_PROC_FS)	+= proc.o
+
 obj-$(CONFIG_X86_32)	+= bugs.o
 obj-$(CONFIG_X86_64)	+= bugs_64.o
 
-- 
1.9.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2014-02-24  4:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-22 19:08 [PATCH 1/2] x86: Drop support for /proc files when !CONFIG_PROC_FS Josh Triplett
2014-02-22 19:09 ` [PATCH 2/2] x86: Support compiling out human-friendly processor feature names Josh Triplett
2014-02-22 19:16   ` H. Peter Anvin
2014-02-22 19:37     ` Josh Triplett
2014-02-22 19:19   ` H. Peter Anvin
2014-02-22 19:43     ` Josh Triplett
2014-02-22 19:55 ` [PATCH v2 1/2] x86: Drop support for /proc files when !CONFIG_PROC_FS Josh Triplett
2014-02-22 21:05   ` [PATCH v3 " Josh Triplett
2014-02-22 21:06   ` [PATCH v3 2/2] x86: Support compiling out human-friendly processor feature names Josh Triplett
2014-02-22 19:57 ` [PATCH v2 " Josh Triplett
2014-02-22 20:49   ` Borislav Petkov
2014-02-22 21:00     ` Josh Triplett
2014-02-22 21:18       ` H. Peter Anvin
2014-02-22 21:36         ` Josh Triplett
2014-02-23 17:56           ` H. Peter Anvin
2014-02-23 21:32             ` Josh Triplett
2014-02-23 21:44               ` H. Peter Anvin
2014-02-23 21:55                 ` Josh Triplett
2014-02-24  4:17                   ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox