diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 16:27:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 16:27:24 -0500 |
commit | ab0475df5ce45d80a9e5f056cbad3a58e4930206 (patch) | |
tree | 053912870c86d7bbec54f107215c8c7bbb04806a /arch/m68k/include/asm | |
parent | 3e8c04eb117445d67ae2b83e08bec4005129356a (diff) | |
parent | 4436820a98cdaf497a874323095e328831030956 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
Pull m68k updates from Geert Uytterhoeven:
"Summary:
- switch to asm-generic/futex.h
- various cleanups
- defconfig updates"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
m68k/defconfig: Enable Ethernet bridging
m68k/defconfig: Enable Atari EtherNAT and EtherNEC Ethernet support
m68k/defconfig: Enable automounting of devtmpfs at /dev
m68k/defconfig: Enable early printk support
m68k/defconfig: Enable test modules
m68k/defconfig: Refresh defconfigs for v3.16-rc1--v3.19-rc2
m68k/atari: Remove obsolete IRQ_TYPE_*
sound: dmasound_atari: Remove obsolete IRQ_TYPE_SLOW
video: atafb: Remove obsolete IRQ_TYPE_PRIO
parport: parport_atari: Remove obsolete IRQ_TYPE_SLOW
net: atarilance: Remove obsolete IRQ_TYPE_PRIO
m68k/atari: Remove obsolete keyboard_tasklet scheduling
m68k/mac: Fix scsi_type for Mac LC and similar models
m68k: Switch to asm-generic/futex.h
m68k/mvme147: config.c - Remove unused functions
m68k/atari: atakeyb.c - Remove some unused functions
m68k/mvme16x: rtc - Don't use module_init in non-modular code
Diffstat (limited to 'arch/m68k/include/asm')
-rw-r--r-- | arch/m68k/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/atariints.h | 5 | ||||
-rw-r--r-- | arch/m68k/include/asm/futex.h | 94 | ||||
-rw-r--r-- | arch/m68k/include/asm/macintosh.h | 2 |
4 files changed, 2 insertions, 100 deletions
diff --git a/arch/m68k/include/asm/Kbuild b/arch/m68k/include/asm/Kbuild index 9b6c691874bd..1517ed1c6471 100644 --- a/arch/m68k/include/asm/Kbuild +++ b/arch/m68k/include/asm/Kbuild | |||
@@ -6,6 +6,7 @@ generic-y += device.h | |||
6 | generic-y += emergency-restart.h | 6 | generic-y += emergency-restart.h |
7 | generic-y += errno.h | 7 | generic-y += errno.h |
8 | generic-y += exec.h | 8 | generic-y += exec.h |
9 | generic-y += futex.h | ||
9 | generic-y += hw_irq.h | 10 | generic-y += hw_irq.h |
10 | generic-y += ioctl.h | 11 | generic-y += ioctl.h |
11 | generic-y += ipcbuf.h | 12 | generic-y += ipcbuf.h |
diff --git a/arch/m68k/include/asm/atariints.h b/arch/m68k/include/asm/atariints.h index 953e0ac6855e..6321c4495620 100644 --- a/arch/m68k/include/asm/atariints.h +++ b/arch/m68k/include/asm/atariints.h | |||
@@ -40,11 +40,6 @@ | |||
40 | /* convert irq_handler index to vector number */ | 40 | /* convert irq_handler index to vector number */ |
41 | #define IRQ_SOURCE_TO_VECTOR(i) ((i) + ((i) < 8 ? 0x18 : (0x40-8))) | 41 | #define IRQ_SOURCE_TO_VECTOR(i) ((i) + ((i) < 8 ? 0x18 : (0x40-8))) |
42 | 42 | ||
43 | /* interrupt service types */ | ||
44 | #define IRQ_TYPE_SLOW 0 | ||
45 | #define IRQ_TYPE_FAST 1 | ||
46 | #define IRQ_TYPE_PRIO 2 | ||
47 | |||
48 | /* ST-MFP interrupts */ | 43 | /* ST-MFP interrupts */ |
49 | #define IRQ_MFP_BUSY (8) | 44 | #define IRQ_MFP_BUSY (8) |
50 | #define IRQ_MFP_DCD (9) | 45 | #define IRQ_MFP_DCD (9) |
diff --git a/arch/m68k/include/asm/futex.h b/arch/m68k/include/asm/futex.h deleted file mode 100644 index bc868af10c96..000000000000 --- a/arch/m68k/include/asm/futex.h +++ /dev/null | |||
@@ -1,94 +0,0 @@ | |||
1 | #ifndef _ASM_M68K_FUTEX_H | ||
2 | #define _ASM_M68K_FUTEX_H | ||
3 | |||
4 | #ifdef __KERNEL__ | ||
5 | #if !defined(CONFIG_MMU) | ||
6 | #include <asm-generic/futex.h> | ||
7 | #else /* CONFIG_MMU */ | ||
8 | |||
9 | #include <linux/futex.h> | ||
10 | #include <linux/uaccess.h> | ||
11 | #include <asm/errno.h> | ||
12 | |||
13 | static inline int | ||
14 | futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, | ||
15 | u32 oldval, u32 newval) | ||
16 | { | ||
17 | u32 val; | ||
18 | |||
19 | if (unlikely(get_user(val, uaddr) != 0)) | ||
20 | return -EFAULT; | ||
21 | |||
22 | if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) | ||
23 | return -EFAULT; | ||
24 | |||
25 | *uval = val; | ||
26 | |||
27 | return 0; | ||
28 | } | ||
29 | |||
30 | static inline int | ||
31 | futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr) | ||
32 | { | ||
33 | int op = (encoded_op >> 28) & 7; | ||
34 | int cmp = (encoded_op >> 24) & 15; | ||
35 | int oparg = (encoded_op << 8) >> 20; | ||
36 | int cmparg = (encoded_op << 20) >> 20; | ||
37 | int oldval, ret; | ||
38 | u32 tmp; | ||
39 | |||
40 | if (encoded_op & (FUTEX_OP_OPARG_SHIFT << 28)) | ||
41 | oparg = 1 << oparg; | ||
42 | |||
43 | pagefault_disable(); /* implies preempt_disable() */ | ||
44 | |||
45 | ret = -EFAULT; | ||
46 | if (unlikely(get_user(oldval, uaddr) != 0)) | ||
47 | goto out_pagefault_enable; | ||
48 | |||
49 | ret = 0; | ||
50 | tmp = oldval; | ||
51 | |||
52 | switch (op) { | ||
53 | case FUTEX_OP_SET: | ||
54 | tmp = oparg; | ||
55 | break; | ||
56 | case FUTEX_OP_ADD: | ||
57 | tmp += oparg; | ||
58 | break; | ||
59 | case FUTEX_OP_OR: | ||
60 | tmp |= oparg; | ||
61 | break; | ||
62 | case FUTEX_OP_ANDN: | ||
63 | tmp &= ~oparg; | ||
64 | break; | ||
65 | case FUTEX_OP_XOR: | ||
66 | tmp ^= oparg; | ||
67 | break; | ||
68 | default: | ||
69 | ret = -ENOSYS; | ||
70 | } | ||
71 | |||
72 | if (ret == 0 && unlikely(put_user(tmp, uaddr) != 0)) | ||
73 | ret = -EFAULT; | ||
74 | |||
75 | out_pagefault_enable: | ||
76 | pagefault_enable(); /* subsumes preempt_enable() */ | ||
77 | |||
78 | if (ret == 0) { | ||
79 | switch (cmp) { | ||
80 | case FUTEX_OP_CMP_EQ: ret = (oldval == cmparg); break; | ||
81 | case FUTEX_OP_CMP_NE: ret = (oldval != cmparg); break; | ||
82 | case FUTEX_OP_CMP_LT: ret = (oldval < cmparg); break; | ||
83 | case FUTEX_OP_CMP_GE: ret = (oldval >= cmparg); break; | ||
84 | case FUTEX_OP_CMP_LE: ret = (oldval <= cmparg); break; | ||
85 | case FUTEX_OP_CMP_GT: ret = (oldval > cmparg); break; | ||
86 | default: ret = -ENOSYS; | ||
87 | } | ||
88 | } | ||
89 | return ret; | ||
90 | } | ||
91 | |||
92 | #endif /* CONFIG_MMU */ | ||
93 | #endif /* __KERNEL__ */ | ||
94 | #endif /* _ASM_M68K_FUTEX_H */ | ||
diff --git a/arch/m68k/include/asm/macintosh.h b/arch/m68k/include/asm/macintosh.h index 29c7c6c3a5f2..42235e7fbeed 100644 --- a/arch/m68k/include/asm/macintosh.h +++ b/arch/m68k/include/asm/macintosh.h | |||
@@ -55,7 +55,7 @@ struct mac_model | |||
55 | #define MAC_SCSI_QUADRA3 4 | 55 | #define MAC_SCSI_QUADRA3 4 |
56 | #define MAC_SCSI_IIFX 5 | 56 | #define MAC_SCSI_IIFX 5 |
57 | #define MAC_SCSI_DUO 6 | 57 | #define MAC_SCSI_DUO 6 |
58 | #define MAC_SCSI_CCL 7 | 58 | #define MAC_SCSI_LC 7 |
59 | #define MAC_SCSI_LATE 8 | 59 | #define MAC_SCSI_LATE 8 |
60 | 60 | ||
61 | #define MAC_IDE_NONE 0 | 61 | #define MAC_IDE_NONE 0 |