]> git.hungrycats.org Git - linux/commit
[PATCH] OProfile: reduce allocations of MSR structs
authorJohn Levon <levon@movementarian.org>
Thu, 21 Aug 2003 09:57:03 +0000 (02:57 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 21 Aug 2003 09:57:03 +0000 (02:57 -0700)
commita5a107f02d998219e9ebf9a013ee5c72261d8a91
tree4a03e546c5bf6dd137fc1e2fad82be5ccd4898fd
parent0e7ee1c185354024d943aec017178025dc34f386
[PATCH] OProfile: reduce allocations of MSR structs

Andi Kleen pointed out the MSRs array was a massive bloat source. Reduce
it somewhat by only allocating the amount actually needed for the CPU type.

Untested on Pentium IV - I don't have a machine.
arch/i386/oprofile/nmi_int.c
arch/i386/oprofile/op_model_athlon.c
arch/i386/oprofile/op_model_p4.c
arch/i386/oprofile/op_model_ppro.c
arch/i386/oprofile/op_x86_model.h