* [PATCH BUGFIX] frv: Define cpu_relax_lowlatency()
@ 2014-08-18 20:00 Davidlohr Bueso
2014-08-19 14:10 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2014-08-18 20:00 UTC (permalink / raw)
To: Linus Torvalds
Cc: Guenter Roeck, Geert Uytterhoeven, David Howells, Peter Zijlstra,
Ingo Molnar, Aswin Chandramouleeswaran, Linux Kernel Mailing List,
davidlohr
3a6bfbc9 (arch,locking: Ciao arch_mutex_cpu_relax()) broke building the frv
arch. Fixes errors such as:
kernel/locking/mcs_spinlock.h:87:2: error: implicit declaration of function 'cpu_relax_lowlatency'
Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
---
Linus, as discussed, here's the resend.
Original thread: https://lkml.org/lkml/2014/8/5/442
arch/frv/include/asm/processor.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/frv/include/asm/processor.h b/arch/frv/include/asm/processor.h
index a34f309..6554e78 100644
--- a/arch/frv/include/asm/processor.h
+++ b/arch/frv/include/asm/processor.h
@@ -129,7 +129,8 @@ unsigned long get_wchan(struct task_struct *p);
#define KSTK_EIP(tsk) ((tsk)->thread.frame0->pc)
#define KSTK_ESP(tsk) ((tsk)->thread.frame0->sp)
-#define cpu_relax() barrier()
+#define cpu_relax() barrier()
+#define cpu_relax_lowlatency() cpu_relax()
/* data cache prefetch */
#define ARCH_HAS_PREFETCH
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH BUGFIX] frv: Define cpu_relax_lowlatency()
2014-08-18 20:00 [PATCH BUGFIX] frv: Define cpu_relax_lowlatency() Davidlohr Bueso
@ 2014-08-19 14:10 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2014-08-19 14:10 UTC (permalink / raw)
To: Davidlohr Bueso
Cc: Linus Torvalds, Geert Uytterhoeven, David Howells, Peter Zijlstra,
Ingo Molnar, Aswin Chandramouleeswaran, Linux Kernel Mailing List,
davidlohr
On Mon, Aug 18, 2014 at 01:00:39PM -0700, Davidlohr Bueso wrote:
> 3a6bfbc9 (arch,locking: Ciao arch_mutex_cpu_relax()) broke building the frv
> arch. Fixes errors such as:
>
> kernel/locking/mcs_spinlock.h:87:2: error: implicit declaration of function 'cpu_relax_lowlatency'
>
> Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
inventing a new tag...
Compile-tested-by: Guenter Roeck <linux@roeck-us.net>
> ---
> Linus, as discussed, here's the resend.
> Original thread: https://lkml.org/lkml/2014/8/5/442
>
> arch/frv/include/asm/processor.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/frv/include/asm/processor.h b/arch/frv/include/asm/processor.h
> index a34f309..6554e78 100644
> --- a/arch/frv/include/asm/processor.h
> +++ b/arch/frv/include/asm/processor.h
> @@ -129,7 +129,8 @@ unsigned long get_wchan(struct task_struct *p);
> #define KSTK_EIP(tsk) ((tsk)->thread.frame0->pc)
> #define KSTK_ESP(tsk) ((tsk)->thread.frame0->sp)
>
> -#define cpu_relax() barrier()
> +#define cpu_relax() barrier()
> +#define cpu_relax_lowlatency() cpu_relax()
>
> /* data cache prefetch */
> #define ARCH_HAS_PREFETCH
> --
> 1.8.1.4
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-19 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 20:00 [PATCH BUGFIX] frv: Define cpu_relax_lowlatency() Davidlohr Bueso
2014-08-19 14:10 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox