diff options
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/pgtable-ppc32.h | 12 | ||||
-rw-r--r-- | include/asm-powerpc/pgtable-ppc64.h | 12 | ||||
-rw-r--r-- | include/asm-powerpc/systbl.h | 1 | ||||
-rw-r--r-- | include/asm-powerpc/unistd.h | 3 |
4 files changed, 19 insertions, 9 deletions
diff --git a/include/asm-powerpc/pgtable-ppc32.h b/include/asm-powerpc/pgtable-ppc32.h index 5b14536d4af8..b2b880a6f631 100644 --- a/include/asm-powerpc/pgtable-ppc32.h +++ b/include/asm-powerpc/pgtable-ppc32.h | |||
@@ -661,10 +661,14 @@ static inline void __ptep_set_access_flags(pte_t *ptep, pte_t entry, int dirty) | |||
661 | } | 661 | } |
662 | 662 | ||
663 | #define ptep_set_access_flags(__vma, __address, __ptep, __entry, __dirty) \ | 663 | #define ptep_set_access_flags(__vma, __address, __ptep, __entry, __dirty) \ |
664 | do { \ | 664 | ({ \ |
665 | __ptep_set_access_flags(__ptep, __entry, __dirty); \ | 665 | int __changed = !pte_same(*(__ptep), __entry); \ |
666 | flush_tlb_page_nohash(__vma, __address); \ | 666 | if (__changed) { \ |
667 | } while(0) | 667 | __ptep_set_access_flags(__ptep, __entry, __dirty); \ |
668 | flush_tlb_page_nohash(__vma, __address); \ | ||
669 | } \ | ||
670 | __changed; \ | ||
671 | }) | ||
668 | 672 | ||
669 | /* | 673 | /* |
670 | * Macro to mark a page protection value as "uncacheable". | 674 | * Macro to mark a page protection value as "uncacheable". |
diff --git a/include/asm-powerpc/pgtable-ppc64.h b/include/asm-powerpc/pgtable-ppc64.h index d61178dea670..4ea99922a75c 100644 --- a/include/asm-powerpc/pgtable-ppc64.h +++ b/include/asm-powerpc/pgtable-ppc64.h | |||
@@ -408,10 +408,14 @@ static inline void __ptep_set_access_flags(pte_t *ptep, pte_t entry, int dirty) | |||
408 | :"cc"); | 408 | :"cc"); |
409 | } | 409 | } |
410 | #define ptep_set_access_flags(__vma, __address, __ptep, __entry, __dirty) \ | 410 | #define ptep_set_access_flags(__vma, __address, __ptep, __entry, __dirty) \ |
411 | do { \ | 411 | ({ \ |
412 | __ptep_set_access_flags(__ptep, __entry, __dirty); \ | 412 | int __changed = !pte_same(*(__ptep), __entry); \ |
413 | flush_tlb_page_nohash(__vma, __address); \ | 413 | if (__changed) { \ |
414 | } while(0) | 414 | __ptep_set_access_flags(__ptep, __entry, __dirty); \ |
415 | flush_tlb_page_nohash(__vma, __address); \ | ||
416 | } \ | ||
417 | __changed; \ | ||
418 | }) | ||
415 | 419 | ||
416 | /* | 420 | /* |
417 | * Macro to mark a page protection value as "uncacheable". | 421 | * Macro to mark a page protection value as "uncacheable". |
diff --git a/include/asm-powerpc/systbl.h b/include/asm-powerpc/systbl.h index 700ca5928741..1cc3f9cb6f4e 100644 --- a/include/asm-powerpc/systbl.h +++ b/include/asm-powerpc/systbl.h | |||
@@ -311,3 +311,4 @@ COMPAT_SYS_SPU(utimensat) | |||
311 | COMPAT_SYS_SPU(signalfd) | 311 | COMPAT_SYS_SPU(signalfd) |
312 | COMPAT_SYS_SPU(timerfd) | 312 | COMPAT_SYS_SPU(timerfd) |
313 | SYSCALL_SPU(eventfd) | 313 | SYSCALL_SPU(eventfd) |
314 | COMPAT_SYS_SPU(sync_file_range2) | ||
diff --git a/include/asm-powerpc/unistd.h b/include/asm-powerpc/unistd.h index e3c28dc31abf..f71c6061f1ec 100644 --- a/include/asm-powerpc/unistd.h +++ b/include/asm-powerpc/unistd.h | |||
@@ -330,10 +330,11 @@ | |||
330 | #define __NR_signalfd 305 | 330 | #define __NR_signalfd 305 |
331 | #define __NR_timerfd 306 | 331 | #define __NR_timerfd 306 |
332 | #define __NR_eventfd 307 | 332 | #define __NR_eventfd 307 |
333 | #define __NR_sync_file_range2 308 | ||
333 | 334 | ||
334 | #ifdef __KERNEL__ | 335 | #ifdef __KERNEL__ |
335 | 336 | ||
336 | #define __NR_syscalls 308 | 337 | #define __NR_syscalls 309 |
337 | 338 | ||
338 | #define __NR__exit __NR_exit | 339 | #define __NR__exit __NR_exit |
339 | #define NR_syscalls __NR_syscalls | 340 | #define NR_syscalls __NR_syscalls |