diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-07-04 20:24:57 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-07-04 20:24:57 -0400 |
commit | 9c5ef0fbfa0b0be219290b05a39135b957479251 (patch) | |
tree | deacd1ff7238ed0faf6a5d90f816e3135774b63d /include | |
parent | 8f1a866fc6831f13593fae6194e3150d45976628 (diff) | |
parent | 190045d53b9a8341e8600d6eb468b6081e903afb (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/unistd.h | 1 | ||||
-rw-r--r-- | include/asm-blackfin/macros.h | 0 | ||||
-rw-r--r-- | include/asm-blackfin/processor.h | 4 | ||||
-rw-r--r-- | include/asm-frv/pgtable.h | 2 | ||||
-rw-r--r-- | include/asm-mips/mach-ip32/dma-coherence.h | 6 | ||||
-rw-r--r-- | include/asm-mips/ptrace.h | 2 | ||||
-rw-r--r-- | include/asm-mips/unistd.h | 16 | ||||
-rw-r--r-- | include/asm-powerpc/systbl.h | 1 | ||||
-rw-r--r-- | include/asm-powerpc/unistd.h | 3 | ||||
-rw-r--r-- | include/asm-sparc64/mdesc.h | 1 | ||||
-rw-r--r-- | include/asm-sparc64/tlb.h | 1 | ||||
-rw-r--r-- | include/linux/eventfd.h | 3 | ||||
-rw-r--r-- | include/linux/pci.h | 11 | ||||
-rw-r--r-- | include/linux/pm.h | 62 | ||||
-rw-r--r-- | include/linux/syscalls.h | 2 |
15 files changed, 93 insertions, 22 deletions
diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h index 250d7f145a..bfdbebebdc 100644 --- a/include/asm-arm/unistd.h +++ b/include/asm-arm/unistd.h | |||
@@ -367,6 +367,7 @@ | |||
367 | #define __NR_get_robust_list (__NR_SYSCALL_BASE+339) | 367 | #define __NR_get_robust_list (__NR_SYSCALL_BASE+339) |
368 | #define __NR_splice (__NR_SYSCALL_BASE+340) | 368 | #define __NR_splice (__NR_SYSCALL_BASE+340) |
369 | #define __NR_arm_sync_file_range (__NR_SYSCALL_BASE+341) | 369 | #define __NR_arm_sync_file_range (__NR_SYSCALL_BASE+341) |
370 | #define __NR_sync_file_range2 __NR_arm_sync_file_range | ||
370 | #define __NR_tee (__NR_SYSCALL_BASE+342) | 371 | #define __NR_tee (__NR_SYSCALL_BASE+342) |
371 | #define __NR_vmsplice (__NR_SYSCALL_BASE+343) | 372 | #define __NR_vmsplice (__NR_SYSCALL_BASE+343) |
372 | #define __NR_move_pages (__NR_SYSCALL_BASE+344) | 373 | #define __NR_move_pages (__NR_SYSCALL_BASE+344) |
diff --git a/include/asm-blackfin/macros.h b/include/asm-blackfin/macros.h deleted file mode 100644 index e69de29bb2..0000000000 --- a/include/asm-blackfin/macros.h +++ /dev/null | |||
diff --git a/include/asm-blackfin/processor.h b/include/asm-blackfin/processor.h index aba2b30a8e..6bb3e0d470 100644 --- a/include/asm-blackfin/processor.h +++ b/include/asm-blackfin/processor.h | |||
@@ -124,6 +124,10 @@ static inline __attribute_pure__ uint32_t bfin_compiled_revid(void) | |||
124 | return 4; | 124 | return 4; |
125 | #elif defined(CONFIG_BF_REV_0_5) | 125 | #elif defined(CONFIG_BF_REV_0_5) |
126 | return 5; | 126 | return 5; |
127 | #elif defined(CONFIG_BF_REV_ANY) | ||
128 | return 0xffff; | ||
129 | #else | ||
130 | return -1; | ||
127 | #endif | 131 | #endif |
128 | } | 132 | } |
129 | 133 | ||
diff --git a/include/asm-frv/pgtable.h b/include/asm-frv/pgtable.h index 2687c77151..114aefae27 100644 --- a/include/asm-frv/pgtable.h +++ b/include/asm-frv/pgtable.h | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/list.h> | 26 | #include <linux/list.h> |
27 | #include <linux/spinlock.h> | 27 | #include <linux/spinlock.h> |
28 | struct mm_struct; | 28 | #include <linux/sched.h> |
29 | struct vm_area_struct; | 29 | struct vm_area_struct; |
30 | #endif | 30 | #endif |
31 | 31 | ||
diff --git a/include/asm-mips/mach-ip32/dma-coherence.h b/include/asm-mips/mach-ip32/dma-coherence.h index c3f9a6a20e..a5511ebb2d 100644 --- a/include/asm-mips/mach-ip32/dma-coherence.h +++ b/include/asm-mips/mach-ip32/dma-coherence.h | |||
@@ -6,8 +6,8 @@ | |||
6 | * Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org> | 6 | * Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org> |
7 | * | 7 | * |
8 | */ | 8 | */ |
9 | #ifndef __ASM_MACH_IP35_DMA_COHERENCE_H | 9 | #ifndef __ASM_MACH_IP32_DMA_COHERENCE_H |
10 | #define __ASM_MACH_IP35_DMA_COHERENCE_H | 10 | #define __ASM_MACH_IP32_DMA_COHERENCE_H |
11 | 11 | ||
12 | #include <asm/ip32/crime.h> | 12 | #include <asm/ip32/crime.h> |
13 | 13 | ||
@@ -69,4 +69,4 @@ static inline int plat_device_is_coherent(struct device *dev) | |||
69 | return 0; /* IP32 is non-cohernet */ | 69 | return 0; /* IP32 is non-cohernet */ |
70 | } | 70 | } |
71 | 71 | ||
72 | #endif /* __ASM_MACH_IP35_DMA_COHERENCE_H */ | 72 | #endif /* __ASM_MACH_IP32_DMA_COHERENCE_H */ |
diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h index 1906938285..85b4436634 100644 --- a/include/asm-mips/ptrace.h +++ b/include/asm-mips/ptrace.h | |||
@@ -86,7 +86,7 @@ struct pt_regs { | |||
86 | 86 | ||
87 | extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); | 87 | extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); |
88 | 88 | ||
89 | extern NORET_TYPE void die(const char *, struct pt_regs *); | 89 | extern NORET_TYPE void die(const char *, struct pt_regs *) ATTRIB_NORET; |
90 | 90 | ||
91 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) | 91 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) |
92 | { | 92 | { |
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index 59d6fec8fb..ed16de0a63 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -977,6 +977,22 @@ | |||
977 | # define __ARCH_WANT_COMPAT_SYS_TIME | 977 | # define __ARCH_WANT_COMPAT_SYS_TIME |
978 | # endif | 978 | # endif |
979 | 979 | ||
980 | /* whitelists for checksyscalls */ | ||
981 | #define __IGNORE_select | ||
982 | #define __IGNORE_vfork | ||
983 | #define __IGNORE_time | ||
984 | #define __IGNORE_uselib | ||
985 | #define __IGNORE_fadvise64_64 | ||
986 | #define __IGNORE_getdents64 | ||
987 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | ||
988 | #define __IGNORE_truncate64 | ||
989 | #define __IGNORE_ftruncate64 | ||
990 | #define __IGNORE_stat64 | ||
991 | #define __IGNORE_lstat64 | ||
992 | #define __IGNORE_fstat64 | ||
993 | #define __IGNORE_fstatat64 | ||
994 | #endif | ||
995 | |||
980 | #endif /* !__ASSEMBLY__ */ | 996 | #endif /* !__ASSEMBLY__ */ |
981 | 997 | ||
982 | /* | 998 | /* |
diff --git a/include/asm-powerpc/systbl.h b/include/asm-powerpc/systbl.h index 700ca59287..1cc3f9cb6f 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 e3c28dc31a..f71c6061f1 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 |
diff --git a/include/asm-sparc64/mdesc.h b/include/asm-sparc64/mdesc.h index 124eb8ca23..c6383982b5 100644 --- a/include/asm-sparc64/mdesc.h +++ b/include/asm-sparc64/mdesc.h | |||
@@ -15,6 +15,7 @@ struct mdesc_node { | |||
15 | u64 node; | 15 | u64 node; |
16 | unsigned int unique_id; | 16 | unsigned int unique_id; |
17 | unsigned int num_arcs; | 17 | unsigned int num_arcs; |
18 | unsigned int irqs[2]; | ||
18 | struct property *properties; | 19 | struct property *properties; |
19 | struct mdesc_node *hash_next; | 20 | struct mdesc_node *hash_next; |
20 | struct mdesc_node *allnodes_next; | 21 | struct mdesc_node *allnodes_next; |
diff --git a/include/asm-sparc64/tlb.h b/include/asm-sparc64/tlb.h index 7af1e1109c..349d1d3e9c 100644 --- a/include/asm-sparc64/tlb.h +++ b/include/asm-sparc64/tlb.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define _SPARC64_TLB_H | 2 | #define _SPARC64_TLB_H |
3 | 3 | ||
4 | #include <linux/swap.h> | 4 | #include <linux/swap.h> |
5 | #include <linux/pagemap.h> | ||
5 | #include <asm/pgalloc.h> | 6 | #include <asm/pgalloc.h> |
6 | #include <asm/tlbflush.h> | 7 | #include <asm/tlbflush.h> |
7 | #include <asm/mmu_context.h> | 8 | #include <asm/mmu_context.h> |
diff --git a/include/linux/eventfd.h b/include/linux/eventfd.h index 0d6ecc60b9..b489fc6d0b 100644 --- a/include/linux/eventfd.h +++ b/include/linux/eventfd.h | |||
@@ -19,7 +19,8 @@ int eventfd_signal(struct file *file, int n); | |||
19 | #else /* CONFIG_EVENTFD */ | 19 | #else /* CONFIG_EVENTFD */ |
20 | 20 | ||
21 | #define eventfd_fget(fd) ERR_PTR(-ENOSYS) | 21 | #define eventfd_fget(fd) ERR_PTR(-ENOSYS) |
22 | #define eventfd_signal(f, n) 0 | 22 | static inline int eventfd_signal(struct file *file, int n) |
23 | { return 0; } | ||
23 | 24 | ||
24 | #endif /* CONFIG_EVENTFD */ | 25 | #endif /* CONFIG_EVENTFD */ |
25 | 26 | ||
diff --git a/include/linux/pci.h b/include/linux/pci.h index fbf3766dac..086a0e5a63 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -748,6 +748,17 @@ static inline void pci_release_regions(struct pci_dev *dev) { } | |||
748 | static inline void pci_block_user_cfg_access(struct pci_dev *dev) { } | 748 | static inline void pci_block_user_cfg_access(struct pci_dev *dev) { } |
749 | static inline void pci_unblock_user_cfg_access(struct pci_dev *dev) { } | 749 | static inline void pci_unblock_user_cfg_access(struct pci_dev *dev) { } |
750 | 750 | ||
751 | static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from) | ||
752 | { return NULL; } | ||
753 | |||
754 | static inline struct pci_dev *pci_get_slot(struct pci_bus *bus, | ||
755 | unsigned int devfn) | ||
756 | { return NULL; } | ||
757 | |||
758 | static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, | ||
759 | unsigned int devfn) | ||
760 | { return NULL; } | ||
761 | |||
751 | #endif /* CONFIG_PCI */ | 762 | #endif /* CONFIG_PCI */ |
752 | 763 | ||
753 | /* Include architecture-dependent settings and functions */ | 764 | /* Include architecture-dependent settings and functions */ |
diff --git a/include/linux/pm.h b/include/linux/pm.h index 87545e0f0b..b2c4fde4e9 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
@@ -110,37 +110,67 @@ typedef int __bitwise suspend_state_t; | |||
110 | #define PM_SUSPEND_MAX ((__force suspend_state_t) 4) | 110 | #define PM_SUSPEND_MAX ((__force suspend_state_t) 4) |
111 | 111 | ||
112 | /** | 112 | /** |
113 | * struct pm_ops - Callbacks for managing platform dependent suspend states. | 113 | * struct pm_ops - Callbacks for managing platform dependent system sleep |
114 | * @valid: Callback to determine whether the given state can be entered. | 114 | * states. |
115 | * Valid states are advertised in /sys/power/state but can still | ||
116 | * be rejected by prepare or enter if the conditions aren't right. | ||
117 | * There is a %pm_valid_only_mem function available that can be assigned | ||
118 | * to this if you only implement mem sleep. | ||
119 | * | 115 | * |
120 | * @prepare: Prepare the platform for the given suspend state. Can return a | 116 | * @valid: Callback to determine if given system sleep state is supported by |
121 | * negative error code if necessary. | 117 | * the platform. |
118 | * Valid (ie. supported) states are advertised in /sys/power/state. Note | ||
119 | * that it still may be impossible to enter given system sleep state if the | ||
120 | * conditions aren't right. | ||
121 | * There is the %pm_valid_only_mem function available that can be assigned | ||
122 | * to this if the platform only supports mem sleep. | ||
122 | * | 123 | * |
123 | * @enter: Enter the given suspend state, must be assigned. Can return a | 124 | * @set_target: Tell the platform which system sleep state is going to be |
124 | * negative error code if necessary. | 125 | * entered. |
126 | * @set_target() is executed right prior to suspending devices. The | ||
127 | * information conveyed to the platform code by @set_target() should be | ||
128 | * disregarded by the platform as soon as @finish() is executed and if | ||
129 | * @prepare() fails. If @set_target() fails (ie. returns nonzero), | ||
130 | * @prepare(), @enter() and @finish() will not be called by the PM core. | ||
131 | * This callback is optional. However, if it is implemented, the argument | ||
132 | * passed to @prepare(), @enter() and @finish() is meaningless and should | ||
133 | * be ignored. | ||
125 | * | 134 | * |
126 | * @finish: Called when the system has left the given state and all devices | 135 | * @prepare: Prepare the platform for entering the system sleep state indicated |
127 | * are resumed. The return value is ignored. | 136 | * by @set_target() or represented by the argument if @set_target() is not |
137 | * implemented. | ||
138 | * @prepare() is called right after devices have been suspended (ie. the | ||
139 | * appropriate .suspend() method has been executed for each device) and | ||
140 | * before the nonboot CPUs are disabled (it is executed with IRQs enabled). | ||
141 | * This callback is optional. It returns 0 on success or a negative | ||
142 | * error code otherwise, in which case the system cannot enter the desired | ||
143 | * sleep state (@enter() and @finish() will not be called in that case). | ||
144 | * | ||
145 | * @enter: Enter the system sleep state indicated by @set_target() or | ||
146 | * represented by the argument if @set_target() is not implemented. | ||
147 | * This callback is mandatory. It returns 0 on success or a negative | ||
148 | * error code otherwise, in which case the system cannot enter the desired | ||
149 | * sleep state. | ||
150 | * | ||
151 | * @finish: Called when the system has just left a sleep state, right after | ||
152 | * the nonboot CPUs have been enabled and before devices are resumed (it is | ||
153 | * executed with IRQs enabled). If @set_target() is not implemented, the | ||
154 | * argument represents the sleep state being left. | ||
155 | * This callback is optional, but should be implemented by the platforms | ||
156 | * that implement @prepare(). If implemented, it is always called after | ||
157 | * @enter() (even if @enter() fails). | ||
128 | */ | 158 | */ |
129 | struct pm_ops { | 159 | struct pm_ops { |
130 | int (*valid)(suspend_state_t state); | 160 | int (*valid)(suspend_state_t state); |
161 | int (*set_target)(suspend_state_t state); | ||
131 | int (*prepare)(suspend_state_t state); | 162 | int (*prepare)(suspend_state_t state); |
132 | int (*enter)(suspend_state_t state); | 163 | int (*enter)(suspend_state_t state); |
133 | int (*finish)(suspend_state_t state); | 164 | int (*finish)(suspend_state_t state); |
134 | }; | 165 | }; |
135 | 166 | ||
167 | extern struct pm_ops *pm_ops; | ||
168 | |||
136 | /** | 169 | /** |
137 | * pm_set_ops - set platform dependent power management ops | 170 | * pm_set_ops - set platform dependent power management ops |
138 | * @pm_ops: The new power management operations to set. | 171 | * @pm_ops: The new power management operations to set. |
139 | */ | 172 | */ |
140 | extern void pm_set_ops(struct pm_ops *pm_ops); | 173 | extern void pm_set_ops(struct pm_ops *pm_ops); |
141 | extern struct pm_ops *pm_ops; | ||
142 | extern int pm_suspend(suspend_state_t state); | ||
143 | |||
144 | extern int pm_valid_only_mem(suspend_state_t state); | 174 | extern int pm_valid_only_mem(suspend_state_t state); |
145 | 175 | ||
146 | /** | 176 | /** |
@@ -161,6 +191,8 @@ extern void arch_suspend_disable_irqs(void); | |||
161 | */ | 191 | */ |
162 | extern void arch_suspend_enable_irqs(void); | 192 | extern void arch_suspend_enable_irqs(void); |
163 | 193 | ||
194 | extern int pm_suspend(suspend_state_t state); | ||
195 | |||
164 | /* | 196 | /* |
165 | * Device power management | 197 | * Device power management |
166 | */ | 198 | */ |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index b02070eac4..83d0ec1123 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -598,6 +598,8 @@ asmlinkage long sys_tee(int fdin, int fdout, size_t len, unsigned int flags); | |||
598 | 598 | ||
599 | asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, | 599 | asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, |
600 | unsigned int flags); | 600 | unsigned int flags); |
601 | asmlinkage long sys_sync_file_range2(int fd, unsigned int flags, | ||
602 | loff_t offset, loff_t nbytes); | ||
601 | asmlinkage long sys_get_robust_list(int pid, | 603 | asmlinkage long sys_get_robust_list(int pid, |
602 | struct robust_list_head __user * __user *head_ptr, | 604 | struct robust_list_head __user * __user *head_ptr, |
603 | size_t __user *len_ptr); | 605 | size_t __user *len_ptr); |