aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2010-09-13 11:18:30 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-10-04 15:57:09 -0400
commit8925ec4c530094b878e7e28a1fd78e7122afd973 (patch)
tree2b7200f64892299c185d3a07d1f793ea9217b5d4 /net
parentf8b63c184ad13cc8adc3dadb557d4fbc29f76e4d (diff)
ARM: 6385/1: setup: detect aliasing I-cache when D-cache is non-aliasing
Currently, the Kernel assumes that if a CPU has a non-aliasing D-cache then the I-cache is also non-aliasing. This may not be true on ARM cores from v6 onwards, which may have aliasing I-caches but non-aliasing D-caches. This patch adds a cpu_has_aliasing_icache function, which is called from cacheid_init and adds CACHEID_VIPT_I_ALIASING to the cacheid when appropriate. A utility macro, icache_is_vipt_aliasing(), is also provided. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions
class="hl opt">[ISAPNP_CARD_DEVS]; /* logical devices */ }; #define ISAPNP_DEVICE_SINGLE(_cva, _cvb, _cvc, _cdevice, _dva, _dvb, _dvc, _dfunction) \ .card_vendor = ISAPNP_VENDOR(_cva, _cvb, _cvc), .card_device = ISAPNP_DEVICE(_cdevice), \ .vendor = ISAPNP_VENDOR(_dva, _dvb, _dvc), .function = ISAPNP_FUNCTION(_dfunction) #define ISAPNP_DEVICE_SINGLE_END \ .card_vendor = 0, .card_device = 0 #if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE)) #define __ISAPNP__ /* lowlevel configuration */ int isapnp_present(void); int isapnp_cfg_begin(int csn, int device); int isapnp_cfg_end(void); unsigned char isapnp_read_byte(unsigned char idx); void isapnp_write_byte(unsigned char idx, unsigned char val); #ifdef CONFIG_PROC_FS int isapnp_proc_init(void); int isapnp_proc_done(void); #else static inline int isapnp_proc_init(void) { return 0; } static inline int isapnp_proc_done(void) { return 0; } #endif /* compat */ struct pnp_card *pnp_find_card(unsigned short vendor, unsigned short device, struct pnp_card *from); struct pnp_dev *pnp_find_dev(struct pnp_card *card, unsigned short vendor, unsigned short function, struct pnp_dev *from); #else /* !CONFIG_ISAPNP */ /* lowlevel configuration */ static inline int isapnp_present(void) { return 0; } static inline int isapnp_cfg_begin(int csn, int device) { return -ENODEV; } static inline int isapnp_cfg_end(void) { return -ENODEV; } static inline unsigned char isapnp_read_byte(unsigned char idx) { return 0xff; } static inline void isapnp_write_byte(unsigned char idx, unsigned char val) { ; } static inline struct pnp_card *pnp_find_card(unsigned short vendor, unsigned short device, struct pnp_card *from) { return NULL; } static inline struct pnp_dev *pnp_find_dev(struct pnp_card *card, unsigned short vendor, unsigned short function, struct pnp_dev *from) { return NULL; } #endif /* CONFIG_ISAPNP */ #endif /* __KERNEL__ */ #endif /* LINUX_ISAPNP_H */