]> 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)
commit60c1e222aa9687f9e4334ecfe0c98c0ac0ed13d5
treef587ea6e2d04196d29a3c0376ea06121ecec50be
parentc9cf460b57f0adac0624cab926d66aa382ccab58
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]