]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: merge the mmu and non-mmu versions of sys_m68k.c
authorGreg Ungerer <gerg@uclinux.org>
Thu, 21 Apr 2011 02:48:07 +0000 (12:48 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 24 May 2011 05:17:21 +0000 (15:17 +1000)
commit5e92e6e2ead4e414bcfaec4a98706e4b00b36eb3
treef587ea6e2d04196d29a3c0376ea06121ecec50be
parent77d558581d0585730191abc95109dd723ffef34a
m68k: merge the mmu and non-mmu versions of sys_m68k.c

There is a lot of common code in the sys_m68k.c files. The mmu and non-mmu
versions can easily be merged into a single file.

There is really only 2 functions that differ in the 2 cases. A single
ifdef on CONFIG_MMU can take care of this. Alternatively we could break
those 2 functions out and maintain sys_m68k_no.c and sys_m68k_mm.c with
just this code in it (Makefile could then just build the right one).
Does anyone have strong feelings on which way they want this done?

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/kernel/sys_m68k.c
arch/m68k/kernel/sys_m68k_mm.c [deleted file]
arch/m68k/kernel/sys_m68k_no.c [deleted file]