search for: xen_drop_mm_ref

Displaying 9 results from an estimated 9 matches for "xen_drop_mm_ref".

2013 Jun 23
0
[PATCH 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...
2013 Jun 25
0
[PATCH v2 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...
2013 Jun 27
0
[PATCH v3 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...
2013 Jun 23
0
[PATCH 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...
2013 Jun 25
0
[PATCH v2 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...
2013 Jun 27
0
[PATCH v3 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...
2013 Jun 23
0
[PATCH 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...
2013 Jun 25
0
[PATCH v2 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...
2013 Jun 27
0
[PATCH v3 30/45] x86/xen: Use get/put_online_cpus_atomic() to prevent CPU offline
...mu.c @@ -39,6 +39,7 @@ * Jeremy Fitzhardinge <jeremy at xensource.com>, XenSource Inc, 2007 */ #include <linux/sched.h> +#include <linux/cpu.h> #include <linux/highmem.h> #include <linux/debugfs.h> #include <linux/bug.h> @@ -1163,9 +1164,13 @@ static void xen_drop_mm_ref(struct mm_struct *mm) */ static void xen_exit_mmap(struct mm_struct *mm) { - get_cpu(); /* make sure we don't move around */ + /* + * Make sure we don't move around, and also prevent CPUs from + * going offline. + */ + get_online_cpus_atomic(); xen_drop_mm_ref(mm); - put_cpu(); +...