mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
MIPS: Remove struct mm_context_t fp_mode_switching field
The fp_mode_switching field in struct mm_context_t was left unused by
commit 8c8d953c28
("MIPS: Schedule on CPUs we need to lose FPU for a
mode switch") in v4.19, with nothing modifying its value & nothing
waiting on it having any particular value after that commit. Remove the
unused field & the one remaining reference to it.
Signed-off-by: Paul Burton <paul.burton@mips.com>
This commit is contained in:
parent
99bf73ebf9
commit
41e486f4f6
2 changed files with 3 additions and 7 deletions
|
@ -9,7 +9,6 @@
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u64 asid[NR_CPUS];
|
u64 asid[NR_CPUS];
|
||||||
void *vdso;
|
void *vdso;
|
||||||
atomic_t fp_mode_switching;
|
|
||||||
|
|
||||||
/* lock to be held whilst modifying fp_bd_emupage_allocmap */
|
/* lock to be held whilst modifying fp_bd_emupage_allocmap */
|
||||||
spinlock_t bd_emupage_lock;
|
spinlock_t bd_emupage_lock;
|
||||||
|
|
|
@ -737,10 +737,9 @@ static long prepare_for_fp_mode_switch(void *unused)
|
||||||
/*
|
/*
|
||||||
* This is icky, but we use this to simply ensure that all CPUs have
|
* This is icky, but we use this to simply ensure that all CPUs have
|
||||||
* context switched, regardless of whether they were previously running
|
* context switched, regardless of whether they were previously running
|
||||||
* kernel or user code. This ensures that no CPU currently has its FPU
|
* kernel or user code. This ensures that no CPU that a mode-switching
|
||||||
* enabled, or is about to attempt to enable it through any path other
|
* program may execute on keeps its FPU enabled (& in the old mode)
|
||||||
* than enable_restore_fp_context() which will wait appropriately for
|
* throughout the mode switch.
|
||||||
* fp_mode_switching to be zero.
|
|
||||||
*/
|
*/
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -829,8 +828,6 @@ int mips_set_process_fp_mode(struct task_struct *task, unsigned int value)
|
||||||
work_on_cpu(cpu, prepare_for_fp_mode_switch, NULL);
|
work_on_cpu(cpu, prepare_for_fp_mode_switch, NULL);
|
||||||
put_online_cpus();
|
put_online_cpus();
|
||||||
|
|
||||||
wake_up_var(&task->mm->context.fp_mode_switching);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue