android_kernel_motorola_sm6225/arch
Greg Ungerer 7c946199cd m68k: merge and clean up delay.h files
The real difference between the mmu and non-mmu varients of the delay.h
files has nothing to do with having an mmu or not. It is processor family
differences that means slightly different code. Merge the delay_mm.h and
delay_no.h files back into a single file.

The primarly difference we need to deal with is whether the processor
supports a 32bit * 32bit -> 64bit multiply. Without it we need to do some
shift scaling as well as use a 32bit * 32bit -> 32bit multiply. If building
for a multi-CPU type kernel then we must use the simpler mult/shift scaling.

This version of delay code allows the CPU32 family to use a 64bit mul,
since it supports this instruction, the old code did not.

The changes use macros where appropriate to try and optimize constant sized
udelay times. And it removes the use of a fixed lib function for the non-mmu
case. Code size on typical kernel configurations is similar, or only larger
by a few tens of bytes.

Also removed the unused muldiv() code from delay_mm.h.

Build and run tested on ColdFire and ARAnyM. Build tested only on 68328
and 68360 (CPU32).

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
2011-07-25 11:20:41 +10:00
..
alpha modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
arm Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm 2011-07-24 10:20:54 -07:00
avr32 Merge branch 'for-upstream' of git://openrisc.net/jonas/linux 2011-07-24 09:55:18 -07:00
blackfin modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
cris modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
frv modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
h8300 modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
ia64 Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus 2011-07-24 09:54:54 -07:00
m32r Merge branch 'for-upstream' of git://openrisc.net/jonas/linux 2011-07-24 09:55:18 -07:00
m68k m68k: merge and clean up delay.h files 2011-07-25 11:20:41 +10:00
microblaze modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
mips modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
mn10300 modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
openrisc OpenRISC: Miscellaneous 2011-07-22 18:46:41 +02:00
parisc modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
powerpc Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus 2011-07-24 09:54:54 -07:00
s390 Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 2011-07-24 09:55:45 -07:00
score modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
sh Merge branch 'for-upstream' of git://openrisc.net/jonas/linux 2011-07-24 09:55:18 -07:00
sparc modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
tile modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
um Merge branches 'x86-urgent-for-linus', 'core-debug-for-linus', 'irq-core-for-linus' and 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2011-07-23 10:33:08 -07:00
unicore32 modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
x86 Merge branch 'for-upstream' of git://openrisc.net/jonas/linux 2011-07-24 09:55:18 -07:00
xtensa modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
.gitignore
Kconfig mm, powerpc: move the RCU page-table freeing into generic code 2011-05-25 08:39:16 -07:00