4f3316c2b5fe2062c26c9b66915b5a5c80c60a5c |
|
26-Mar-2014 |
Peter Zijlstra <peterz@infradead.org> |
locking,arch,sparc: Fold atomic_ops Many of the atomic op implementations are the same except for one instruction; fold the lot into a few CPP macros and reduce LoC. This also prepares for easy addition of new ops. Signed-off-by: Peter Zijlstra <peterz@infradead.org> Acked-by: David S. Miller <davem@davemloft.net> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Kirill Tkhai <tkhai@yandex.ru> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: sparclinux@vger.kernel.org Link: http://lkml.kernel.org/r/20140508135852.825281379@infradead.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
|
61d9b9355b0d427bd1e732bd54628ff9103e496f |
|
12-Aug-2013 |
Kirill Tkhai <tkhai@yandex.ru> |
sparc64: Remove RWSEM export leftovers The functions __down_read __down_read_trylock __down_write __down_write_trylock __up_read __up_write __downgrade_write are implemented inline, so remove corresponding EXPORT_SYMBOLs (They lead to compile errors on RT kernel). Signed-off-by: Kirill Tkhai <tkhai@yandex.ru> CC: David Miller <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net>
|
193d2aadc0ff5c687f6f0d5ef1d38c86ab511a14 |
|
10-Nov-2012 |
David S. Miller <davem@davemloft.net> |
sparc: Support atomic64_dec_if_positive properly. Sparc32 already supported it, as a consequence of using the generic atomic64 implementation. And the sparc64 implementation is rather trivial. This allows us to set ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE for all of sparc, and avoid the annoying warning from lib/atomic64_test.c Signed-off-by: David S. Miller <davem@davemloft.net>
|
4ff28d4ca93b182b8e181b1e1b1d03fd09fdaeb4 |
|
20-Aug-2012 |
David S. Miller <davem@davemloft.net> |
sparc64: Add SHA1 driver making use of the 'sha1' instruction. Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
|
2c66f623631709aa5f2e4c14c7e089682e7394a3 |
|
26-May-2012 |
David Miller <davem@davemloft.net> |
sparc: use the new generic strnlen_user() function This throws away the sparc-specific functions in favor of the generic optimized version. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
ff06dffbc8abfc60d6a0332f058f1d1bb01abb31 |
|
23-May-2012 |
David S. Miller <davem@davemloft.net> |
sparc: Add full proper error handling to strncpy_from_user(). Linus removed the end-of-address-space hackery from fs/namei.c:do_getname() so we really have to validate these edge conditions and cannot cheat any more (as x86 used to as well). Move to a common C implementation like x86 did. And if both src and dst are sufficiently aligned we'll do word at a time copies and checks as well. Signed-off-by: David S. Miller <davem@davemloft.net>
|
1b35a57b1c1781f0fc8fc554f732b3a5408c5244 |
|
15-May-2012 |
David S. Miller <davem@davemloft.net> |
sparc32: Kill off software 32-bit multiply/divide routines. For the explicit calls to .udiv/.umul in assembler, I made a mechanical (read as: safe) transformation. I didn't attempt to make any simplifications. In particular, __ndelay and __udelay can be simplified significantly. Some of the %y reads are unnecessary and these routines have no need any longer for allocating a register window, they can be leaf functions. Signed-off-by: David S. Miller <davem@davemloft.net>
|
b55e81b9f8cf0256bcfc548360aef642630c2919 |
|
12-May-2012 |
David S. Miller <davem@davemloft.net> |
sparc32: Remove inline strncmp "optimization" for constant counts. Let the compiler do stuff like this. Signed-off-by: David S. Miller <davem@davemloft.net>
|
348738afe530cc3a7306bbd3d1ccd322f9638f32 |
|
26-Dec-2011 |
Sam Ravnborg <sam@ravnborg.org> |
sparc32: drop unused atomic24 support atomic24 support was used to semaphores in the past - but is no longer used. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
4d14a459857bd151ecbd14bcd37b4628da00792b |
|
11-Dec-2009 |
David S. Miller <davem@davemloft.net> |
sparc: Stop trying to be so fancy and use __builtin_{memcpy,memset}() This mirrors commit ff60fab71bb3b4fdbf8caf57ff3739ffd0887396 (x86: Use __builtin_memset and __builtin_memcpy for memset/memcpy) Signed-off-by: David S. Miller <davem@davemloft.net>
|
45536ffc8dcb7798ff4818f54391547e5af19648 |
|
09-Jan-2009 |
Sam Ravnborg <sam@ravnborg.org> |
sparc: Create a new file lib/ksyms.c and add export of all symbols defined in assembler in lib/ to this file. Remove the duplicate entries from kernel/sparc_ksyms_*.c The rationale behind this is that the EXPORT_SYMBOL() should be close to their definition and we cannot add designate a symbol to be exported in assembler so at least put it in a file in the same directory. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Additions by Julian Calaby: * Rebased over sparc-2.6.git HEAD Signed-off-by: Julian Calaby <julian.calaby@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|