You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
uml: current.h cleanup
Tidy current-related stuff. There was a comment in current.h saying that current_thread was obsolete, so this patch turns all instances of current_thread into current_thread_info(). There's some simplifying of the result in arch/um/sys-i386/signal.c. current.h and thread_info also get style cleanups. Signed-off-by: Jeff Dike <jdike@linux.intel.com> 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
009ec2a915
commit
a5a678c80b
@@ -81,7 +81,7 @@ static int copy_sc_from_user(struct pt_regs *regs,
|
||||
if (err)
|
||||
return 1;
|
||||
|
||||
err = restore_fp_registers(userspace_pid[current_thread->cpu],
|
||||
err = restore_fp_registers(userspace_pid[current_thread_info()->cpu],
|
||||
(unsigned long *) &fp);
|
||||
if (err < 0) {
|
||||
printk(KERN_ERR "copy_sc_from_user - "
|
||||
@@ -143,7 +143,7 @@ static int copy_sc_to_user(struct sigcontext __user *to,
|
||||
if (err)
|
||||
return 1;
|
||||
|
||||
err = save_fp_registers(userspace_pid[current_thread->cpu],
|
||||
err = save_fp_registers(userspace_pid[current_thread_info()->cpu],
|
||||
(unsigned long *) &fp);
|
||||
if (err < 0) {
|
||||
printk(KERN_ERR "copy_sc_from_user - restore_fp_registers "
|
||||
|
||||
Reference in New Issue
Block a user