From: Ralf Baechle Date: Tue, 17 Sep 2013 08:25:47 +0000 (+0200) Subject: MIPS: Optimize current_cpu_type() for better code. X-Git-Tag: v3.12-rc2~15^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69f24d1784b631b81a54eb57c49bf46536dd2382;p=pandora-kernel.git MIPS: Optimize current_cpu_type() for better code. o Move current_cpu_type() to a separate header file o #ifdefing on supported CPU types lets modern GCC know that certain code in callers may be discarded ideally turning current_cpu_type() into a function returning a constant. o Use current_cpu_type() rather than direct access to struct cpuinfo_mips. Signed-off-by: Ralf Baechle Cc: Steven J. Hill Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5833/ --- Reading git-diff-tree failed