summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-03-31 13:32:30 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-31 13:32:30 -0700
commitadb3b1f3fc1c6edb501808ebf80a81e81c52eb73 (patch)
tree9490e03ee23abda6a42cc0070aec5494c18ce9bf /arch
parenta75ee6ecd411a50bf4da927c2fdb2cb56246a2bd (diff)
parent7ec6118c46699548b302149bba791166004c8428 (diff)
Merge tag 'parisc-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6
Pull PARISC misc updates from James Bottomley: "This is a couple of minor updates (fixing lws futex locking and removing some obsolete cpu_*_map calls)." * tag 'parisc-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6: [PARISC] remove references to cpu_*_map. [PARISC] futex: Use same lock set as lws calls
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/include/asm/futex.h31
-rw-r--r--arch/parisc/kernel/smp.c3
2 files changed, 28 insertions, 6 deletions
diff --git a/arch/parisc/include/asm/futex.h b/arch/parisc/include/asm/futex.h
index 2388bdb32832..49df14805a9b 100644
--- a/arch/parisc/include/asm/futex.h
+++ b/arch/parisc/include/asm/futex.h
@@ -8,6 +8,29 @@
#include <asm/atomic.h>
#include <asm/errno.h>
+/* The following has to match the LWS code in syscall.S. We have
+ sixteen four-word locks. */
+
+static inline void
+_futex_spin_lock_irqsave(u32 __user *uaddr, unsigned long int *flags)
+{
+ extern u32 lws_lock_start[];
+ long index = ((long)uaddr & 0xf0) >> 2;
+ arch_spinlock_t *s = (arch_spinlock_t *)&lws_lock_start[index];
+ local_irq_save(*flags);
+ arch_spin_lock(s);
+}
+
+static inline void
+_futex_spin_unlock_irqrestore(u32 __user *uaddr, unsigned long int *flags)
+{
+ extern u32 lws_lock_start[];
+ long index = ((long)uaddr & 0xf0) >> 2;
+ arch_spinlock_t *s = (arch_spinlock_t *)&lws_lock_start[index];
+ arch_spin_unlock(s);
+ local_irq_restore(*flags);
+}
+
static inline int
futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr)
{
@@ -26,7 +49,7 @@ futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr)
pagefault_disable();
- _atomic_spin_lock_irqsave(uaddr, flags);
+ _futex_spin_lock_irqsave(uaddr, &flags);
switch (op) {
case FUTEX_OP_SET:
@@ -71,7 +94,7 @@ futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr)
ret = -ENOSYS;
}
- _atomic_spin_unlock_irqrestore(uaddr, flags);
+ _futex_spin_unlock_irqrestore(uaddr, &flags);
pagefault_enable();
@@ -113,7 +136,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
* address. This should scale to a couple of CPUs.
*/
- _atomic_spin_lock_irqsave(uaddr, flags);
+ _futex_spin_lock_irqsave(uaddr, &flags);
ret = get_user(val, uaddr);
@@ -122,7 +145,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
*uval = val;
- _atomic_spin_unlock_irqrestore(uaddr, flags);
+ _futex_spin_unlock_irqrestore(uaddr, &flags);
return ret;
}
diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
index 5006e8ea3051..0bb1d63907f8 100644
--- a/arch/parisc/kernel/smp.c
+++ b/arch/parisc/kernel/smp.c
@@ -290,8 +290,7 @@ smp_cpu_init(int cpunum)
mb();
/* Well, support 2.4 linux scheme as well. */
- if (cpu_isset(cpunum, cpu_online_map))
- {
+ if (cpu_online(cpunum)) {
extern void machine_halt(void); /* arch/parisc.../process.c */
printk(KERN_CRIT "CPU#%d already initialized!\n", cpunum);
2-5'>libreoffice-5-2-5 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2013-02-24update translations for LibreOffice 4.0.1 rc2libreoffice-4-0-1Andras Timar461-8020/+6488
2013-02-19Branch libreoffice-4-0-1Petr Mladek0-0/+0
2013-02-17update translations for LibreOffice 4.0.1 rc1Andras Timar2272-35857/+34254
2013-01-29update Serbian translationsdremote-1.0.2sdremote-1.0.1sdremote-1.0.0Andras Timar592-5471/+4015
2013-01-28Kazak -> Kazakh change in translationsAndras Timar113-226/+226
2013-01-28add missing translations for 'Insert' buttonAndras Timar113-1790/+6474
2013-01-27update translations for LibreOffice 4.0 rc3Andras Timar1554-18883/+21797
2013-01-24quick fix for string freeze break in About boxAndras Timar113-177/+177
2013-01-24quick fix for string freeze break in About boxAndras Timar113-177/+177
2013-01-22remove obsolete .po filesAndras Timar169-441529/+0
2013-01-22typo fix in LibreLogo helpAndras Timar58-73/+73
2013-01-21update translations for LibreOffice 4.0 rc2Andras Timar4063-79124/+87680
2013-01-20remove empty ur, ta sid and lb help translationsAndras Timar212-1543308/+0
2013-01-07build fixAndras Timar1-0/+211
2013-01-07build fixAndras Timar2-0/+423
2013-01-06 update translations for LibreOffice 4.0 rc1Andras Timar32937-122972/+587364
2012-12-17fdo#58068 fix invalid .po headersPetr Mladek25-0/+25
2012-12-16update translations for LibreOffice 4.0 beta2Andras Timar