diff options
Diffstat (limited to 'arch/powerpc/platforms')
| -rw-r--r-- | arch/powerpc/platforms/cell/spufs/coredump.c | 2 | ||||
| -rw-r--r-- | arch/powerpc/platforms/iseries/vio.c | 2 | ||||
| -rw-r--r-- | arch/powerpc/platforms/pseries/dlpar.c | 18 | ||||
| -rw-r--r-- | arch/powerpc/platforms/pseries/xics.c | 12 |
4 files changed, 12 insertions, 22 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/coredump.c b/arch/powerpc/platforms/cell/spufs/coredump.c index c4d4a19235e0..eea120229cdb 100644 --- a/arch/powerpc/platforms/cell/spufs/coredump.c +++ b/arch/powerpc/platforms/cell/spufs/coredump.c | |||
| @@ -54,7 +54,7 @@ static ssize_t do_coredump_read(int num, struct spu_context *ctx, void *buffer, | |||
| 54 | */ | 54 | */ |
| 55 | static int spufs_dump_write(struct file *file, const void *addr, int nr, loff_t *foffset) | 55 | static int spufs_dump_write(struct file *file, const void *addr, int nr, loff_t *foffset) |
| 56 | { | 56 | { |
| 57 | unsigned long limit = current->signal->rlim[RLIMIT_CORE].rlim_cur; | 57 | unsigned long limit = rlimit(RLIMIT_CORE); |
| 58 | ssize_t written; | 58 | ssize_t written; |
| 59 | 59 | ||
| 60 | if (*foffset + nr > limit) | 60 | if (*foffset + nr > limit) |
diff --git a/arch/powerpc/platforms/iseries/vio.c b/arch/powerpc/platforms/iseries/vio.c index 657b72f68493..2aa8b5631beb 100644 --- a/arch/powerpc/platforms/iseries/vio.c +++ b/arch/powerpc/platforms/iseries/vio.c | |||
| @@ -474,6 +474,8 @@ static void __init get_viotape_info(struct device_node *vio_root) | |||
| 474 | struct vio_waitevent we; | 474 | struct vio_waitevent we; |
| 475 | int ret; | 475 | int ret; |
| 476 | 476 | ||
| 477 | init_completion(&we.com); | ||
| 478 | |||
| 477 | ret = viopath_open(viopath_hostLp, viomajorsubtype_tape, 2); | 479 | ret = viopath_open(viopath_hostLp, viomajorsubtype_tape, 2); |
| 478 | if (ret) { | 480 | if (ret) { |
| 479 | printk(KERN_WARNING "get_viotape_info: " | 481 | printk(KERN_WARNING "get_viotape_info: " |
diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c index 67b7a10f9fce..37bce52526da 100644 --- a/arch/powerpc/platforms/pseries/dlpar.c +++ b/arch/powerpc/platforms/pseries/dlpar.c | |||
| @@ -236,7 +236,9 @@ static struct device_node *derive_parent(const char *path) | |||
| 236 | 236 | ||
| 237 | int dlpar_attach_node(struct device_node *dn) | 237 | int dlpar_attach_node(struct device_node *dn) |
| 238 | { | 238 | { |
| 239 | #ifdef CONFIG_PROC_DEVICETREE | ||
| 239 | struct proc_dir_entry *ent; | 240 | struct proc_dir_entry *ent; |
| 241 | #endif | ||
| 240 | int rc; | 242 | int rc; |
| 241 | 243 | ||
| 242 | of_node_set_flag(dn, OF_DYNAMIC); | 244 | of_node_set_flag(dn, OF_DYNAMIC); |
| @@ -267,10 +269,10 @@ int dlpar_attach_node(struct device_node *dn) | |||
| 267 | 269 | ||
| 268 | int dlpar_detach_node(struct device_node *dn) | 270 | int dlpar_detach_node(struct device_node *dn) |
| 269 | { | 271 | { |
| 272 | #ifdef CONFIG_PROC_DEVICETREE | ||
| 270 | struct device_node *parent = dn->parent; | 273 | struct device_node *parent = dn->parent; |
| 271 | struct property *prop = dn->properties; | 274 | struct property *prop = dn->properties; |
| 272 | 275 | ||
| 273 | #ifdef CONFIG_PROC_DEVICETREE | ||
| 274 | while (prop) { | 276 | while (prop) { |
| 275 | remove_proc_entry(prop->name, dn->pde); | 277 | remove_proc_entry(prop->name, dn->pde); |
| 276 | prop = prop->next; | 278 | prop = prop->next; |
| @@ -344,20 +346,6 @@ int dlpar_release_drc(u32 drc_index) | |||
| 344 | 346 | ||
| 345 | #ifdef CONFIG_ARCH_CPU_PROBE_RELEASE | 347 | #ifdef CONFIG_ARCH_CPU_PROBE_RELEASE |
| 346 | 348 | ||
| 347 | static DEFINE_MUTEX(pseries_cpu_hotplug_mutex); | ||
| 348 | |||
| 349 | void cpu_hotplug_driver_lock(void) | ||
| 350 | __acquires(pseries_cpu_hotplug_mutex) | ||
| 351 | { | ||
| 352 | mutex_lock(&pseries_cpu_hotplug_mutex); | ||
| 353 | } | ||
| 354 | |||
| 355 | void cpu_hotplug_driver_unlock(void) | ||
| 356 | __releases(pseries_cpu_hotplug_mutex) | ||
| 357 | { | ||
| 358 | mutex_unlock(&pseries_cpu_hotplug_mutex); | ||
| 359 | } | ||
| 360 | |||
| 361 | static int dlpar_online_cpu(struct device_node *dn) | 349 | static int dlpar_online_cpu(struct device_node *dn) |
| 362 | { | 350 | { |
| 363 | int rc = 0; | 351 | int rc = 0; |
diff --git a/arch/powerpc/platforms/pseries/xics.c b/arch/powerpc/platforms/pseries/xics.c index b9b9e11609ec..d80f193cd871 100644 --- a/arch/powerpc/platforms/pseries/xics.c +++ b/arch/powerpc/platforms/pseries/xics.c | |||
| @@ -163,14 +163,13 @@ static inline void lpar_qirr_info(int n_cpu , u8 value) | |||
| 163 | /* Interface to generic irq subsystem */ | 163 | /* Interface to generic irq subsystem */ |
| 164 | 164 | ||
| 165 | #ifdef CONFIG_SMP | 165 | #ifdef CONFIG_SMP |
| 166 | static int get_irq_server(unsigned int virq, unsigned int strict_check) | 166 | static int get_irq_server(unsigned int virq, cpumask_t cpumask, |
| 167 | unsigned int strict_check) | ||
| 167 | { | 168 | { |
| 168 | int server; | 169 | int server; |
| 169 | /* For the moment only implement delivery to all cpus or one cpu */ | 170 | /* For the moment only implement delivery to all cpus or one cpu */ |
| 170 | cpumask_t cpumask; | ||
| 171 | cpumask_t tmp = CPU_MASK_NONE; | 171 | cpumask_t tmp = CPU_MASK_NONE; |
| 172 | 172 | ||
| 173 | cpumask_copy(&cpumask, irq_to_desc(virq)->affinity); | ||
| 174 | if (!distribute_irqs) | 173 | if (!distribute_irqs) |
| 175 | return default_server; | 174 | return default_server; |
| 176 | 175 | ||
| @@ -192,7 +191,8 @@ static int get_irq_server(unsigned int virq, unsigned int strict_check) | |||
| 192 | return default_server; | 191 | return default_server; |
| 193 | } | 192 | } |
| 194 | #else | 193 | #else |
| 195 | static int get_irq_server(unsigned int virq, unsigned int strict_check) | 194 | static int get_irq_server(unsigned int virq, cpumask_t cpumask, |
| 195 | unsigned int strict_check) | ||
| 196 | { | 196 | { |
| 197 | return default_server; | 197 | return default_server; |
| 198 | } | 198 | } |
| @@ -211,7 +211,7 @@ static void xics_unmask_irq(unsigned int virq) | |||
| 211 | if (irq == XICS_IPI || irq == XICS_IRQ_SPURIOUS) | 211 | if (irq == XICS_IPI || irq == XICS_IRQ_SPURIOUS) |
| 212 | return; | 212 | return; |
| 213 | 213 | ||
| 214 | server = get_irq_server(virq, 0); | 214 | server = get_irq_server(virq, *(irq_to_desc(virq)->affinity), 0); |
| 215 | 215 | ||
| 216 | call_status = rtas_call(ibm_set_xive, 3, 1, NULL, irq, server, | 216 | call_status = rtas_call(ibm_set_xive, 3, 1, NULL, irq, server, |
| 217 | DEFAULT_PRIORITY); | 217 | DEFAULT_PRIORITY); |
| @@ -405,7 +405,7 @@ static int xics_set_affinity(unsigned int virq, const struct cpumask *cpumask) | |||
| 405 | * For the moment only implement delivery to all cpus or one cpu. | 405 | * For the moment only implement delivery to all cpus or one cpu. |
| 406 | * Get current irq_server for the given irq | 406 | * Get current irq_server for the given irq |
| 407 | */ | 407 | */ |
| 408 | irq_server = get_irq_server(virq, 1); | 408 | irq_server = get_irq_server(virq, *cpumask, 1); |
| 409 | if (irq_server == -1) { | 409 | if (irq_server == -1) { |
| 410 | char cpulist[128]; | 410 | char cpulist[128]; |
| 411 | cpumask_scnprintf(cpulist, sizeof(cpulist), cpumask); | 411 | cpumask_scnprintf(cpulist, sizeof(cpulist), cpumask); |
