mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] mspec driver build fix
Fix MSPEC driver to build for non SN2 enabled configs as the driver should work in cached and uncached modes (no fetchop) on these systems. In addition make MSPEC select IA64_UNCACHED_ALLOCATOR, which is required for it and move it to arch/ia64/Kconfig to avoid warnings on non ia64 architectures running allmodconfig. Once the Kconfig code is fixed, we can move it back. Signed-off-by: Jes Sorensen <[email protected]> Cc: Fernando Luis Vzquez Cao <[email protected]> Cc: "Luck, Tony" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d67afe5ed0
commit
1a4b0fc503
4 changed files with 21 additions and 10 deletions
|
|
@ -136,9 +136,13 @@
|
|||
*/
|
||||
#define TO_PHYS(x) (TO_PHYS_MASK & (x))
|
||||
#define TO_CAC(x) (CAC_BASE | TO_PHYS(x))
|
||||
#ifdef CONFIG_SGI_SN
|
||||
#define TO_AMO(x) (AMO_BASE | TO_PHYS(x))
|
||||
#define TO_GET(x) (GET_BASE | TO_PHYS(x))
|
||||
|
||||
#else
|
||||
#define TO_AMO(x) ({ BUG(); x; })
|
||||
#define TO_GET(x) ({ BUG(); x; })
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Covert from processor physical address to II/TIO physical address:
|
||||
|
|
|
|||
Loading…
Reference in a new issue