diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-08-06 13:13:54 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-08-06 13:13:54 -0400 |
| commit | 11e4afb49b7fa1fc8e1ffd850c1806dd86a08204 (patch) | |
| tree | 9e57efcb106ae912f7bec718feb3f8ec607559bb /drivers/xen | |
| parent | 162500b3a3ff39d941d29db49b41a16667ae44f0 (diff) | |
| parent | 9b2a606d3898fcb2eedb6faded3bb37549590ac4 (diff) | |
Merge branches 'gemini' and 'misc' into devel
Diffstat (limited to 'drivers/xen')
| -rw-r--r-- | drivers/xen/balloon.c | 1 | ||||
| -rw-r--r-- | drivers/xen/events.c | 1 | ||||
| -rw-r--r-- | drivers/xen/evtchn.c | 1 | ||||
| -rw-r--r-- | drivers/xen/grant-table.c | 1 | ||||
| -rw-r--r-- | drivers/xen/manage.c | 29 | ||||
| -rw-r--r-- | drivers/xen/sys-hypervisor.c | 1 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_client.c | 1 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 1 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_xs.c | 2 | ||||
| -rw-r--r-- | drivers/xen/xencomm.c | 2 | ||||
| -rw-r--r-- | drivers/xen/xenfs/xenbus.c | 1 |
11 files changed, 21 insertions, 20 deletions
diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index f6738d8b02bc..1a0d8c2a0354 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c | |||
| @@ -43,6 +43,7 @@ | |||
| 43 | #include <linux/mutex.h> | 43 | #include <linux/mutex.h> |
| 44 | #include <linux/list.h> | 44 | #include <linux/list.h> |
| 45 | #include <linux/sysdev.h> | 45 | #include <linux/sysdev.h> |
| 46 | #include <linux/gfp.h> | ||
| 46 | 47 | ||
| 47 | #include <asm/page.h> | 48 | #include <asm/page.h> |
| 48 | #include <asm/pgalloc.h> | 49 | #include <asm/pgalloc.h> |
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 2f8413794d05..db8f506817f0 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
| 28 | #include <linux/string.h> | 28 | #include <linux/string.h> |
| 29 | #include <linux/bootmem.h> | 29 | #include <linux/bootmem.h> |
| 30 | #include <linux/slab.h> | ||
| 30 | 31 | ||
| 31 | #include <asm/ptrace.h> | 32 | #include <asm/ptrace.h> |
| 32 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index f70a4f4698c5..66e185cfe92f 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c | |||
| @@ -45,7 +45,6 @@ | |||
| 45 | #include <linux/poll.h> | 45 | #include <linux/poll.h> |
| 46 | #include <linux/irq.h> | 46 | #include <linux/irq.h> |
| 47 | #include <linux/init.h> | 47 | #include <linux/init.h> |
| 48 | #include <linux/gfp.h> | ||
| 49 | #include <linux/mutex.h> | 48 | #include <linux/mutex.h> |
| 50 | #include <linux/cpu.h> | 49 | #include <linux/cpu.h> |
| 51 | 50 | ||
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 4c6c0bd636a8..f66db3b91d61 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | #include <linux/module.h> | 34 | #include <linux/module.h> |
| 35 | #include <linux/sched.h> | 35 | #include <linux/sched.h> |
| 36 | #include <linux/mm.h> | 36 | #include <linux/mm.h> |
| 37 | #include <linux/slab.h> | ||
| 37 | #include <linux/vmalloc.h> | 38 | #include <linux/vmalloc.h> |
| 38 | #include <linux/uaccess.h> | 39 | #include <linux/uaccess.h> |
| 39 | 40 | ||
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 5d42d55e299b..07e857b0de13 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | */ | 3 | */ |
| 4 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
| 5 | #include <linux/err.h> | 5 | #include <linux/err.h> |
| 6 | #include <linux/slab.h> | ||
| 6 | #include <linux/reboot.h> | 7 | #include <linux/reboot.h> |
| 7 | #include <linux/sysrq.h> | 8 | #include <linux/sysrq.h> |
| 8 | #include <linux/stop_machine.h> | 9 | #include <linux/stop_machine.h> |
| @@ -79,12 +80,6 @@ static void do_suspend(void) | |||
| 79 | 80 | ||
| 80 | shutting_down = SHUTDOWN_SUSPEND; | 81 | shutting_down = SHUTDOWN_SUSPEND; |
| 81 | 82 | ||
| 82 | err = stop_machine_create(); | ||
| 83 | if (err) { | ||
| 84 | printk(KERN_ERR "xen suspend: failed to setup stop_machine %d\n", err); | ||
| 85 | goto out; | ||
| 86 | } | ||
| 87 | |||
| 88 | #ifdef CONFIG_PREEMPT | 83 | #ifdef CONFIG_PREEMPT |
| 89 | /* If the kernel is preemptible, we need to freeze all the processes | 84 | /* If the kernel is preemptible, we need to freeze all the processes |
| 90 | to prevent them from being in the middle of a pagetable update | 85 | to prevent them from being in the middle of a pagetable update |
| @@ -92,7 +87,7 @@ static void do_suspend(void) | |||
| 92 | err = freeze_processes(); | 87 | err = freeze_processes(); |
| 93 | if (err) { | 88 | if (err) { |
| 94 | printk(KERN_ERR "xen suspend: freeze failed %d\n", err); | 89 | printk(KERN_ERR "xen suspend: freeze failed %d\n", err); |
| 95 | goto out_destroy_sm; | 90 | goto out; |
| 96 | } | 91 | } |
| 97 | #endif | 92 | #endif |
| 98 | 93 | ||
| @@ -135,12 +130,8 @@ out_resume: | |||
| 135 | out_thaw: | 130 | out_thaw: |
| 136 | #ifdef CONFIG_PREEMPT | 131 | #ifdef CONFIG_PREEMPT |
| 137 | thaw_processes(); | 132 | thaw_processes(); |
| 138 | |||
| 139 | out_destroy_sm: | ||
| 140 | #endif | ||
| 141 | stop_machine_destroy(); | ||
| 142 | |||
| 143 | out: | 133 | out: |
| 134 | #endif | ||
| 144 | shutting_down = SHUTDOWN_INVALID; | 135 | shutting_down = SHUTDOWN_INVALID; |
| 145 | } | 136 | } |
| 146 | #endif /* CONFIG_PM_SLEEP */ | 137 | #endif /* CONFIG_PM_SLEEP */ |
| @@ -194,6 +185,7 @@ static void shutdown_handler(struct xenbus_watch *watch, | |||
| 194 | kfree(str); | 185 | kfree(str); |
| 195 | } | 186 | } |
| 196 | 187 | ||
| 188 | #ifdef CONFIG_MAGIC_SYSRQ | ||
| 197 | static void sysrq_handler(struct xenbus_watch *watch, const char **vec, | 189 | static void sysrq_handler(struct xenbus_watch *watch, const char **vec, |
| 198 | unsigned int len) | 190 | unsigned int len) |
| 199 | { | 191 | { |
| @@ -223,15 +215,16 @@ static void sysrq_handler(struct xenbus_watch *watch, const char **vec, | |||
| 223 | handle_sysrq(sysrq_key, NULL); | 215 | handle_sysrq(sysrq_key, NULL); |
| 224 | } | 216 | } |
| 225 | 217 | ||
| 226 | static struct xenbus_watch shutdown_watch = { | ||
| 227 | .node = "control/shutdown", | ||
| 228 | .callback = shutdown_handler | ||
| 229 | }; | ||
| 230 | |||
| 231 | static struct xenbus_watch sysrq_watch = { | 218 | static struct xenbus_watch sysrq_watch = { |
| 232 | .node = "control/sysrq", | 219 | .node = "control/sysrq", |
| 233 | .callback = sysrq_handler | 220 | .callback = sysrq_handler |
| 234 | }; | 221 | }; |
| 222 | #endif | ||
| 223 | |||
| 224 | static struct xenbus_watch shutdown_watch = { | ||
| 225 | .node = "control/shutdown", | ||
| 226 | .callback = shutdown_handler | ||
| 227 | }; | ||
| 235 | 228 | ||
| 236 | static int setup_shutdown_watcher(void) | 229 | static int setup_shutdown_watcher(void) |
| 237 | { | 230 | { |
| @@ -243,11 +236,13 @@ static int setup_shutdown_watcher(void) | |||
| 243 | return err; | 236 | return err; |
| 244 | } | 237 | } |
| 245 | 238 | ||
| 239 | #ifdef CONFIG_MAGIC_SYSRQ | ||
| 246 | err = register_xenbus_watch(&sysrq_watch); | 240 | err = register_xenbus_watch(&sysrq_watch); |
| 247 | if (err) { | 241 | if (err) { |
| 248 | printk(KERN_ERR "Failed to set sysrq watcher\n"); | 242 | printk(KERN_ERR "Failed to set sysrq watcher\n"); |
| 249 | return err; | 243 | return err; |
| 250 | } | 244 | } |
| 245 | #endif | ||
| 251 | 246 | ||
| 252 | return 0; | 247 | return 0; |
| 253 | } | 248 | } |
diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c index bb71ab2336c8..60f1827a32cb 100644 --- a/drivers/xen/sys-hypervisor.c +++ b/drivers/xen/sys-hypervisor.c | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | * published by the Free Software Foundation. | 7 | * published by the Free Software Foundation. |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <linux/slab.h> | ||
| 10 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
| 11 | #include <linux/module.h> | 12 | #include <linux/module.h> |
| 12 | #include <linux/kobject.h> | 13 | #include <linux/kobject.h> |
diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index 92a1ef80a288..7b3e973a1aee 100644 --- a/drivers/xen/xenbus/xenbus_client.c +++ b/drivers/xen/xenbus/xenbus_client.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | * IN THE SOFTWARE. | 30 | * IN THE SOFTWARE. |
| 31 | */ | 31 | */ |
| 32 | 32 | ||
| 33 | #include <linux/slab.h> | ||
| 33 | #include <linux/types.h> | 34 | #include <linux/types.h> |
| 34 | #include <linux/vmalloc.h> | 35 | #include <linux/vmalloc.h> |
| 35 | #include <asm/xen/hypervisor.h> | 36 | #include <asm/xen/hypervisor.h> |
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 2f7aaa99dc47..3479332113e9 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | #include <linux/kthread.h> | 45 | #include <linux/kthread.h> |
| 46 | #include <linux/mutex.h> | 46 | #include <linux/mutex.h> |
| 47 | #include <linux/io.h> | 47 | #include <linux/io.h> |
| 48 | #include <linux/slab.h> | ||
| 48 | 49 | ||
| 49 | #include <asm/page.h> | 50 | #include <asm/page.h> |
| 50 | #include <asm/pgtable.h> | 51 | #include <asm/pgtable.h> |
diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen/xenbus/xenbus_xs.c index eab33f1dbdf7..7b547f53f65e 100644 --- a/drivers/xen/xenbus/xenbus_xs.c +++ b/drivers/xen/xenbus/xenbus_xs.c | |||
| @@ -499,7 +499,7 @@ int xenbus_printf(struct xenbus_transaction t, | |||
| 499 | #define PRINTF_BUFFER_SIZE 4096 | 499 | #define PRINTF_BUFFER_SIZE 4096 |
| 500 | char *printf_buffer; | 500 | char *printf_buffer; |
| 501 | 501 | ||
| 502 | printf_buffer = kmalloc(PRINTF_BUFFER_SIZE, GFP_KERNEL); | 502 | printf_buffer = kmalloc(PRINTF_BUFFER_SIZE, GFP_NOIO | __GFP_HIGH); |
| 503 | if (printf_buffer == NULL) | 503 | if (printf_buffer == NULL) |
| 504 | return -ENOMEM; | 504 | return -ENOMEM; |
| 505 | 505 | ||
diff --git a/drivers/xen/xencomm.c b/drivers/xen/xencomm.c index a240b2c20b99..b91f8ff50d05 100644 --- a/drivers/xen/xencomm.c +++ b/drivers/xen/xencomm.c | |||
| @@ -18,8 +18,8 @@ | |||
| 18 | * Authors: Hollis Blanchard <hollisb@us.ibm.com> | 18 | * Authors: Hollis Blanchard <hollisb@us.ibm.com> |
| 19 | */ | 19 | */ |
| 20 | 20 | ||
| 21 | #include <linux/gfp.h> | ||
| 22 | #include <linux/mm.h> | 21 | #include <linux/mm.h> |
| 22 | #include <linux/slab.h> | ||
| 23 | #include <asm/page.h> | 23 | #include <asm/page.h> |
| 24 | #include <xen/xencomm.h> | 24 | #include <xen/xencomm.h> |
| 25 | #include <xen/interface/xen.h> | 25 | #include <xen/interface/xen.h> |
diff --git a/drivers/xen/xenfs/xenbus.c b/drivers/xen/xenfs/xenbus.c index 6c4269b836b7..f28ece397361 100644 --- a/drivers/xen/xenfs/xenbus.c +++ b/drivers/xen/xenfs/xenbus.c | |||
| @@ -51,6 +51,7 @@ | |||
| 51 | #include <linux/init.h> | 51 | #include <linux/init.h> |
| 52 | #include <linux/namei.h> | 52 | #include <linux/namei.h> |
| 53 | #include <linux/string.h> | 53 | #include <linux/string.h> |
| 54 | #include <linux/slab.h> | ||
| 54 | 55 | ||
| 55 | #include "xenfs.h" | 56 | #include "xenfs.h" |
| 56 | #include "../xenbus/xenbus_comms.h" | 57 | #include "../xenbus/xenbus_comms.h" |
