[PATCH] Remove set_fs() in stop_machine()
) From: Brian Gerst <bgerst@didntduck.org> Call sched_setscheduler() directly instead. Signed-off-by: Brian Gerst <bgerst@didntduck.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
df2e71fb91
commit
ed653a6404
1 changed files with 1 additions and 5 deletions
|
@ -87,13 +87,9 @@ static int stop_machine(void)
|
|||
{
|
||||
int i, ret = 0;
|
||||
struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
|
||||
mm_segment_t old_fs = get_fs();
|
||||
|
||||
/* One high-prio thread per cpu. We'll do this one. */
|
||||
set_fs(KERNEL_DS);
|
||||
sys_sched_setscheduler(current->pid, SCHED_FIFO,
|
||||
(struct sched_param __user *)¶m);
|
||||
set_fs(old_fs);
|
||||
sched_setscheduler(current, SCHED_FIFO, ¶m);
|
||||
|
||||
atomic_set(&stopmachine_thread_ack, 0);
|
||||
stopmachine_num_threads = 0;
|
||||
|
|
Loading…
Reference in a new issue