Davidlohr Bueso
3a6bfbc91d
arch, locking: Ciao arch_mutex_cpu_relax()
...
The arch_mutex_cpu_relax() function, introduced by 34b133f , is
hacky and ugly. It was added a few years ago to address the fact
that common cpu_relax() calls include yielding on s390, and thus
impact the optimistic spinning functionality of mutexes. Nowadays
we use this function well beyond mutexes: rwsem, qrwlock, mcs and
lockref. Since the macro that defines the call is in the mutex header,
any users must include mutex.h and the naming is misleading as well.
This patch (i) renames the call to cpu_relax_lowlatency ("relax, but
only if you can do it with very low latency") and (ii) defines it in
each arch's asm/processor.h local header, just like for regular cpu_relax
functions. On all archs, except s390, cpu_relax_lowlatency is simply cpu_relax,
and thus we can take it out of mutex.h. While this can seem redundant,
I believe it is a good choice as it allows us to move out arch specific
logic from generic locking primitives and enables future(?) archs to
transparently define it, similarly to System Z.
Signed-off-by: Davidlohr Bueso <[email protected] >
Signed-off-by: Peter Zijlstra <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Anton Blanchard <[email protected] >
Cc: Aurelien Jacquiot <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Bharat Bhushan <[email protected] >
Cc: Catalin Marinas <[email protected] >
Cc: Chen Liqin <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Christian Borntraeger <[email protected] >
Cc: Chris Zankel <[email protected] >
Cc: David Howells <[email protected] >
Cc: David S. Miller <[email protected] >
Cc: Deepthi Dharwar <[email protected] >
Cc: Dominik Dingel <[email protected] >
Cc: Fenghua Yu <[email protected] >
Cc: Geert Uytterhoeven <[email protected] >
Cc: Guan Xuetao <[email protected] >
Cc: Haavard Skinnemoen <[email protected] >
Cc: Hans-Christian Egtvedt <[email protected] >
Cc: Heiko Carstens <[email protected] >
Cc: Helge Deller <[email protected] >
Cc: Hirokazu Takata <[email protected] >
Cc: Ivan Kokshaysky <[email protected] >
Cc: James E.J. Bottomley <[email protected] >
Cc: James Hogan <[email protected] >
Cc: Jason Wang <[email protected] >
Cc: Jesper Nilsson <[email protected] >
Cc: Joe Perches <[email protected] >
Cc: Jonas Bonn <[email protected] >
Cc: Joseph Myers <[email protected] >
Cc: Kees Cook <[email protected] >
Cc: Koichi Yasutake <[email protected] >
Cc: Lennox Wu <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Mark Salter <[email protected] >
Cc: Martin Schwidefsky <[email protected] >
Cc: Matt Turner <[email protected] >
Cc: Max Filippov <[email protected] >
Cc: Michael Neuling <[email protected] >
Cc: Michal Simek <[email protected] >
Cc: Mikael Starvik <[email protected] >
Cc: Nicolas Pitre <[email protected] >
Cc: Paolo Bonzini <[email protected] >
Cc: Paul Burton <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Paul Gortmaker <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Qais Yousef <[email protected] >
Cc: Qiaowei Ren <[email protected] >
Cc: Rafael Wysocki <[email protected] >
Cc: Ralf Baechle <[email protected] >
Cc: Richard Henderson <[email protected] >
Cc: Richard Kuo <[email protected] >
Cc: Russell King <[email protected] >
Cc: Steven Miao <[email protected] >
Cc: Steven Rostedt <[email protected] >
Cc: Stratos Karafotis <[email protected] >
Cc: Tim Chen <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Vasily Kulikov <[email protected] >
Cc: Vineet Gupta <[email protected] >
Cc: Vineet Gupta <[email protected] >
Cc: Waiman Long <[email protected] >
Cc: Will Deacon <[email protected] >
Cc: Wolfram Sang <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2014-07-17 12:32:47 +02:00
Al Viro
61b7fbc3f4
mn10300: convert to generic kernel_thread()
...
Signed-off-by: Al Viro <[email protected] >
2012-10-01 00:54:29 -04:00
Al Viro
6e75421014
mn10300: switch to generic kernel_execve()
...
Signed-off-by: Al Viro <[email protected] >
2012-10-01 00:53:59 -04:00
Suresh Siddha
55ccf3fe3f
fork: move the real prepare_to_copy() users to arch_dup_task_struct()
...
Historical prepare_to_copy() is mostly a no-op, duplicated for majority of
the architectures and the rest following the x86 model of flushing the extended
register state like fpu there.
Remove it and use the arch_dup_task_struct() instead.
Suggested-by: Oleg Nesterov <[email protected] >
Suggested-by: Linus Torvalds <[email protected] >
Signed-off-by: Suresh Siddha <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Acked-by: Benjamin Herrenschmidt <[email protected] >
Cc: David Howells <[email protected] >
Cc: Koichi Yasutake <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Paul Mundt <[email protected] >
Cc: Chris Zankel <[email protected] >
Cc: Richard Henderson <[email protected] >
Cc: Russell King <[email protected] >
Cc: Haavard Skinnemoen <[email protected] >
Cc: Mike Frysinger <[email protected] >
Cc: Mark Salter <[email protected] >
Cc: Aurelien Jacquiot <[email protected] >
Cc: Mikael Starvik <[email protected] >
Cc: Yoshinori Sato <[email protected] >
Cc: Richard Kuo <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Michal Simek <[email protected] >
Cc: Ralf Baechle <[email protected] >
Cc: Jonas Bonn <[email protected] >
Cc: James E.J. Bottomley <[email protected] >
Cc: Helge Deller <[email protected] >
Cc: Martin Schwidefsky <[email protected] >
Cc: Heiko Carstens <[email protected] >
Cc: Chen Liqin <[email protected] >
Cc: Lennox Wu <[email protected] >
Cc: David S. Miller <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Jeff Dike <[email protected] >
Cc: Richard Weinberger <[email protected] >
Cc: Guan Xuetao <[email protected] >
Signed-off-by: H. Peter Anvin <[email protected] >
2012-05-16 15:16:26 -07:00
Mathias Krause
b45d59fb92
mn10300, exec: remove redundant set_fs(USER_DS)
...
The address limit is already set in flush_old_exec() so this
set_fs(USER_DS) is redundant.
Signed-off-by: Mathias Krause <[email protected] >
Cc: Koichi Yasutake <[email protected] >
Acked-by: David Howells <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2011-07-26 16:49:41 -07:00
David Howells
7c7fcf762e
MN10300: Save frame pointer in thread_info struct rather than global var
...
Save the current exception frame pointer in the thread_info struct rather than
in a global variable as the latter makes SMP tricky, especially when preemption
is also enabled.
This also replaces __frame with current_frame() and rearranges header file
inclusions to make it all compile.
Signed-off-by: David Howells <[email protected] >
Acked-by: Akira Takeuchi <[email protected] >
2010-10-27 17:29:01 +01:00
Akira Takeuchi
368dd5acd1
MN10300: And Panasonic AM34 subarch and implement SMP
...
Implement the Panasonic MN10300 AM34 CPU subarch and implement SMP support for
MN10300. Also implement support for the MN2WS0060 processor and the ASB2364
evaluation board which are AM34 based.
Signed-off-by: Akira Takeuchi <[email protected] >
Signed-off-by: Kiyoshi Owada <[email protected] >
Signed-off-by: David Howells <[email protected] >
2010-10-27 17:28:55 +01:00
Akira Takeuchi
278d91c460
MN10300: Make the FPU operate in non-lazy mode under SMP
...
Make the FPU operate in non-lazy mode under SMP so that when the process that
is currently using the FPU migrates to a different CPU, we don't have to ping
its previous CPU to flush the FPU context.
Signed-off-by: Akira Takeuchi <[email protected] >
Signed-off-by: Kiyoshi Owada <[email protected] >
Signed-off-by: David Howells <[email protected] >
2010-10-27 17:28:52 +01:00
David Howells
344af921e6
MN10300: Provide a MN10300_CACHE_ENABLED config option
...
Provide a MN10300_CACHE_ENABLED config option as inverted logic of
MN10300_CACHE_DISABLED to make things simpler.
Signed-off-by: David Howells <[email protected] >
2010-10-27 17:28:42 +01:00
David Howells
5d289964e1
MN10300: Add utrace/tracehooks support
...
Add utrace/tracehooks support to MN10300.
Signed-off-by: David Howells <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2009-06-11 09:02:20 -07:00
David Howells
da7616610c
Move arch headers from include/asm-mn10300/ to arch/mn10300/include/asm/.
...
Signed-off-by: David Howells <[email protected] >
2009-04-10 14:19:03 +01:00