aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-05-16 18:40:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-05-16 18:40:07 -0400
commit2ed3d79564cff70b7a6e6516ce6324928971d1e0 (patch)
tree78ef884969dd40e8beca137cc688f91fb3e44fba
parentd66102706621949e3ac7db14448eb65ea2abfcaa (diff)
parent4a8a224570ada27196a2529df9e3dd345239b286 (diff)
Merge tag 'arc-4.1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
Pull ARC fixes from Vineet Gupta. * tag 'arc-4.1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc: ARC: inline cache flush toggle helpers ARC: With earlycon in use, retire EARLY_PRINTK ARC: unbork !LLSC build
-rw-r--r--arch/arc/Kconfig.debug13
-rw-r--r--arch/arc/include/asm/atomic.h2
-rw-r--r--arch/arc/mm/cache_arc700.c4
3 files changed, 3 insertions, 16 deletions
diff --git a/arch/arc/Kconfig.debug b/arch/arc/Kconfig.debug
index a7fc0da25650..ff6a4b5ce927 100644
--- a/arch/arc/Kconfig.debug
+++ b/arch/arc/Kconfig.debug
@@ -2,19 +2,6 @@ menu "Kernel hacking"
2 2
3source "lib/Kconfig.debug" 3source "lib/Kconfig.debug"
4 4
5config EARLY_PRINTK
6 bool "Early printk" if EMBEDDED
7 default y
8 help
9 Write kernel log output directly into the VGA buffer or to a serial
10 port.
11
12 This is useful for kernel debugging when your machine crashes very
13 early before the console code is initialized. For normal operation
14 it is not recommended because it looks ugly and doesn't cooperate
15 with klogd/syslogd or the X server. You should normally N here,
16 unless you want to debug such a crash.
17
18config 16KSTACKS 5config 16KSTACKS
19 bool "Use 16Kb for kernel stacks instead of 8Kb" 6 bool "Use 16Kb for kernel stacks instead of 8Kb"
20 help 7 help
diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h
index 067551b6920a..9917a45fc430 100644
--- a/arch/arc/include/asm/atomic.h
+++ b/arch/arc/include/asm/atomic.h
@@ -99,7 +99,7 @@ static inline void atomic_##op(int i, atomic_t *v) \
99 atomic_ops_unlock(flags); \ 99 atomic_ops_unlock(flags); \
100} 100}
101 101
102#define ATOMIC_OP_RETURN(op, c_op) \ 102#define ATOMIC_OP_RETURN(op, c_op, asm_op) \
103static inline int atomic_##op##_return(int i, atomic_t *v) \ 103static inline int atomic_##op##_return(int i, atomic_t *v) \
104{ \ 104{ \
105 unsigned long flags; \ 105 unsigned long flags; \
diff --git a/arch/arc/mm/cache_arc700.c b/arch/arc/mm/cache_arc700.c
index 8c3a3e02ba92..12b2100db073 100644
--- a/arch/arc/mm/cache_arc700.c
+++ b/arch/arc/mm/cache_arc700.c
@@ -266,7 +266,7 @@ static inline void __cache_line_loop(unsigned long paddr, unsigned long vaddr,
266 * Machine specific helpers for Entire D-Cache or Per Line ops 266 * Machine specific helpers for Entire D-Cache or Per Line ops
267 */ 267 */
268 268
269static unsigned int __before_dc_op(const int op) 269static inline unsigned int __before_dc_op(const int op)
270{ 270{
271 unsigned int reg = reg; 271 unsigned int reg = reg;
272 272
@@ -284,7 +284,7 @@ static unsigned int __before_dc_op(const int op)
284 return reg; 284 return reg;
285} 285}
286 286
287static void __after_dc_op(const int op, unsigned int reg) 287static inline void __after_dc_op(const int op, unsigned int reg)
288{ 288{
289 if (op & OP_FLUSH) /* flush / flush-n-inv both wait */ 289 if (op & OP_FLUSH) /* flush / flush-n-inv both wait */
290 while (read_aux_reg(ARC_REG_DC_CTRL) & DC_CTRL_FLUSH_STATUS); 290 while (read_aux_reg(ARC_REG_DC_CTRL) & DC_CTRL_FLUSH_STATUS);