]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: use kernel processor defines for conditional optimizations
authorGreg Ungerer <gerg@uclinux.org>
Thu, 2 Jun 2011 06:07:33 +0000 (16:07 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 14 Jun 2011 01:42:29 +0000 (11:42 +1000)
commitf39cf6b65e2bc7cd0afbaaf187accd935f1a505a
tree05e4d44e3828c8620595674341236e71c4f86e7e
parent58d1d64a85fa532413df2e0bc0433bf335146398
m68k: use kernel processor defines for conditional optimizations

Older m68k-linux compilers will include pre-defined symbols that
confuse what processor it is being targeted for. For example gcc-4.1.2
will pre-define __mc68020__ even if you specify the target processor
as -m68000 on the gcc command line. Newer versions of gcc have this
corrected.

In a few places the m68k code uses defined(__mc68020__) for optimizations
that include instructions that are specific to the CPU 68020 and above.
When compiling with older compilers this will be true even when we have
selected to compile for the older 68000 processors.

Switch to using the kernel processor defines, CONFIG_M68020 and friends.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/kernel/m68k_ksyms.c
arch/m68k/lib/memcpy.c
arch/m68k/lib/memset.c
arch/m68k/lib/muldi3.c