]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Introduce set_elf_platform() helper function
authorRobert Millan <rmh@gnu.org>
Mon, 18 Apr 2011 18:37:55 +0000 (11:37 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 May 2011 08:55:48 +0000 (09:55 +0100)
commit258d4dd2c3e9e62f5b5564b6352d299e126b48ec
tree92044a50986f7b56c4270273b2040f04041ca92e
parentb0dc93976afbd3c4ce920f2a842b4ce1319a1dd0
MIPS: Introduce set_elf_platform() helper function

Replace these sequences:

if (cpu == 0)
__elf_platform = "foo";

with a trivial inline function.

Signed-off-by: Robert Millan <rmh@gnu.org>
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Cc: wu zhangjin <wuzhangjin@gmail.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2304/
Patchwork: https://patchwork.linux-mips.org/patch/2374/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c