search for: __stop_machine_run

Displaying 4 results from an estimated 4 matches for "__stop_machine_run".

2008 Jul 16
2
[PATCH] stopmachine: add stopmachine_timeout v2
...tate machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STOPMACHINE_EXIT); + atomic_dec(&num_threads); local_irq_enable(); do_exit(0); } @@ -105,6 +111,15 @@ int __stop_machine_run(int (*fn)(void *), void *data, const cpumask_t *cpus) int i, err; struct stop_machine_data active, idle; struct task_struct **threads; + unsigned long limit; + + if (atomic_read(&num_threads)) { + /* + * previous stop_machine was timeout, and still there are some + * unfinished threa...
2008 Jul 16
2
[PATCH] stopmachine: add stopmachine_timeout v2
...tate machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STOPMACHINE_EXIT); + atomic_dec(&num_threads); local_irq_enable(); do_exit(0); } @@ -105,6 +111,15 @@ int __stop_machine_run(int (*fn)(void *), void *data, const cpumask_t *cpus) int i, err; struct stop_machine_data active, idle; struct task_struct **threads; + unsigned long limit; + + if (atomic_read(&num_threads)) { + /* + * previous stop_machine was timeout, and still there are some + * unfinished threa...
2008 Jul 17
1
[PATCH] stopmachine: add stopmachine_timeout v4
...tate machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STOPMACHINE_EXIT); + atomic_dec(&num_threads); local_irq_enable(); do_exit(0); } @@ -105,6 +111,15 @@ int __stop_machine_run(int (*fn)(void *), void *data, const cpumask_t *cpus) int i, err; struct stop_machine_data active, idle; struct task_struct **threads; + unsigned long limit; + + if (atomic_read(&num_threads)) { + /* + * previous stop_machine was timeout, and still there are some + * unfinished threa...
2008 Jul 17
1
[PATCH] stopmachine: add stopmachine_timeout v4
...tate machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STOPMACHINE_EXIT); + atomic_dec(&num_threads); local_irq_enable(); do_exit(0); } @@ -105,6 +111,15 @@ int __stop_machine_run(int (*fn)(void *), void *data, const cpumask_t *cpus) int i, err; struct stop_machine_data active, idle; struct task_struct **threads; + unsigned long limit; + + if (atomic_read(&num_threads)) { + /* + * previous stop_machine was timeout, and still there are some + * unfinished threa...