e7498281d3
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 <hskinnemoen@atmel.com> Cc: David Brownell <david-b@pacbell.net> Acked-by: Andrew Victor <andrew@sanpeople.com> Cc: Nicolas Ferre <nicolas.ferre@rfo.atmel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
at91_adc.h | ||
at91_aic.h | ||
at91_dbgu.h | ||
at91_ecc.h | ||
at91_lcdc.h | ||
at91_mci.h | ||
at91_pio.h | ||
at91_pit.h | ||
at91_pmc.h | ||
at91_rstc.h | ||
at91_rtc.h | ||
at91_rtt.h | ||
at91_shdwc.h | ||
at91_spi.h | ||
at91_ssc.h | ||
at91_st.h | ||
at91_tc.h | ||
at91_twi.h | ||
at91_wdt.h | ||
at91rm9200_emac.h | ||
at91rm9200_mc.h | ||
at91rm9200.h | ||
at91sam926x_mc.h | ||
at91sam9260_matrix.h | ||
at91sam9260.h | ||
at91sam9261_matrix.h | ||
at91sam9261.h | ||
at91sam9263_matrix.h | ||
at91sam9263.h | ||
board.h | ||
cpu.h | ||
debug-macro.S | ||
dma.h | ||
entry-macro.S | ||
gpio.h | ||
hardware.h | ||
io.h | ||
irqs.h | ||
memory.h | ||
system.h | ||
timex.h | ||
uncompress.h | ||
vmalloc.h |