diff options
| author | Haavard Skinnemoen <[email protected]> | 2007-05-09 02:33:47 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-05-09 12:30:50 -0700 |
| commit | e7498281d3caec1141d7542ec494c4e4a1d404c9 (patch) | |
| tree | fcf4d2d82cb52211a4a1c7f7c6965d4996b99ac4 /include/linux/debugobjects.h | |
| parent | 31143d5d515ece617ffccb7df5ff75e4d1dfa120 (diff) | |
Use common cpu_is_xxx() macros on AT91 and AVR32
Several drivers shared between AT91 and AVR32 chips use cpu_is_xxx()
to handle CPU-specific differences. Currently, such code needs to be
inside #ifdef CONFIG_ARCH_AT91 because the macros don't exist on AVR32.
By defining the same macros on both AT91 and AVR32, these #ifdefs can
be eliminated. Since the macros will evaluate to a constant value for
CPUs that aren't supported by the current architecture, any code that
is only needed on AT91 will be optimized away on AVR32 and vice versa.
Signed-off-by: Haavard Skinnemoen <[email protected]>
Cc: David Brownell <[email protected]>
Acked-by: Andrew Victor <[email protected]>
Cc: Nicolas Ferre <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions