alpha: Wire up sched_setattr, sched_getattr, and renameat2 syscalls.
Matt Turner
maintainerPATCH 1/2 alpha: Wire up sched_setattr, sched_getattr, and renameat2 syscalls.
From: Michael Cree <[email protected]>
Signed-off-by Michael Cree <[email protected]>
Signed-off-by Matt Turner <[email protected]>
--- arch/alpha/include/asm/unistd.h | 2 +- arch/alpha/include/uapi/asm/unistd.h | 3 +++ arch/alpha/kernel/systbls.S | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-)
arch/alpha/include/asm/unistd.h +1 -1
@@ -3,7 +3,7 @@#include <uapi/asm/unistd.h> -#define NR_SYSCALLS 508 +#define NR_SYSCALLS 511#define __ARCH_WANT_OLD_READDIR#define __ARCH_WANT_STAT64
arch/alpha/include/uapi/asm/unistd.h +3 -0
@@ -469,5 +469,8 @@#define __NR_process_vm_writev 505#define __NR_kcmp 506#define __NR_finit_module 507 +#define __NR_sched_setattr 508 +#define __NR_sched_getattr 509 +#define __NR_renameat2 510#endif /* _UAPI_ALPHA_UNISTD_H */
arch/alpha/kernel/systbls.S +3 -0
@@ -526,6 +526,9 @@ sys_call_table: .quad sys_process_vm_writev /* 505 */ .quad sys_kcmp .quad sys_finit_module + .quad sys_sched_setattr + .quad sys_sched_getattr + .quad sys_renameat2 /* 510 */ .size sys_call_table, . - sys_call_table .type sys_call_table, @object
Signature · 1 line
1.8.5.5
Matt Turner
maintainerPATCH 2/2 alpha: io: implement relaxed accessor macros for writes
From: Will Deacon <[email protected]>
write{b,w,l,q}_relaxed are implemented by some architectures in order to permit memory-mapped I/O writes with weaker barrier semantics than the non-relaxed variants.
This patch implements these write macros for Alpha, in the same vein as the relaxed read macros, which are already implemented.
Cc Ivan Kokshaysky <[email protected]>
Signed-off-by Will Deacon <[email protected]>
Signed-off-by Matt Turner <[email protected]>
--- arch/alpha/include/asm/io.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
arch/alpha/include/asm/io.h +8 -4
@@ -500,10 +500,14 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)#define outb_p outb#define outw_p outw#define outl_p outl -#define readb_relaxed (addr) __raw_readb(addr) -#define readw_relaxed (addr) __raw_readw(addr) -#define readl_relaxed (addr) __raw_readl(addr) -#define readq_relaxed (addr) __raw_readq(addr) +#define readb_relaxed (addr) __raw_readb(addr) +#define readw_relaxed (addr) __raw_readw(addr) +#define readl_relaxed (addr) __raw_readl(addr) +#define readq_relaxed (addr) __raw_readq(addr) +#define writeb_relaxed (b, addr) __raw_writeb(b, addr) +#define writew_relaxed (b, addr) __raw_writew(b, addr) +#define writel_relaxed (b, addr) __raw_writel(b, addr) +#define writeq_relaxed (b, addr) __raw_writeq(b, addr)#define mmiowb ()
Signature · 1 line
1.8.5.5