uml: remove task_protections
Replaced task_protections with stack_protections since they do the same thing, and task_protections was misnamed anyway. This needs THREAD_SIZE, so that's imported via common-offsets.h Also tidied up the code in the vicinity. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
22258d406f
commit
57598fd7b3
@ -57,7 +57,7 @@ void flush_thread_tt(void)
|
||||
enable_timer();
|
||||
free_page(stack);
|
||||
protect_memory(uml_reserved, high_physmem - uml_reserved, 1, 1, 0, 1);
|
||||
task_protections((unsigned long) current_thread);
|
||||
stack_protections((unsigned long) current_thread);
|
||||
force_flush_all();
|
||||
unblock_signals();
|
||||
}
|
||||
|
Reference in New Issue
Block a user