]> git.karo-electronics.de Git - mv-sheeva.git/commit
x86: cache_info: Kill the moronic shadow struct
authorThomas Gleixner <tglx@linutronix.de>
Sun, 24 Jul 2011 09:46:08 +0000 (09:46 +0000)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 Sep 2011 17:28:33 +0000 (19:28 +0200)
commitb7d11a768b061c307aaaa6242f83da2d2388c756
tree059eac92f029bbee30ee3a309ce2f8fdc5f6b2df
parent05b217b021e003d60471eb419d0ceed84d06c5db
x86: cache_info: Kill the moronic shadow struct

Commit f9b90566c ("x86: reduce stack usage in init_intel_cacheinfo")
introduced a shadow structure to reduce the stack usage on large
machines instead of making the smaller structure embedded into the
large one. That's definitely a candidate for the bad taste award.

Move the small struct into the large one and get rid of the ugly type
casts.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Hans Rosenfeld <hans.rosenfeld@amd.com>
Cc: Borislav Petkov <borislav.petkov@amd.com>
Cc: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Mike Travis <travis@sgi.com>
Link: http://lkml.kernel.org/r/20110723212626.625651773@linutronix.de
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/intel_cacheinfo.c