From: Rusty Russell Date: Wed, 31 Dec 2008 23:42:27 +0000 (+1030) Subject: cpumask: convert kernel/profile.c X-Git-Tag: v2.6.29-rc1~521^2~11^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c309b917cab55799ea489d7b5f1b77025d9f8462;p=pandora-kernel.git cpumask: convert kernel/profile.c Impact: Reduce kernel memory usage, use new cpumask API. Avoid a static cpumask_t for prof_cpu_mask, and an on-stack cpumask_t in prof_cpu_mask_write_proc. Both become cpumask_var_t. prof_cpu_mask is only allocated when profiling is on, but the NULL checks are optimized out by gcc for the !CPUMASK_OFFSTACK case. Also removed some strange and unnecessary casts. Signed-off-by: Rusty Russell --- Reading git-diff-tree failed