Skip to contentSkip to conversation

Remove reference of TIF_USEDFPU on arch not using it

PATCH RESEND Applied Julien Grall 3 participants 6 messages Feb 8, 2019 – Feb 26, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Remove reference of TIF_USEDFPU on arch not using it

Hi all,

This small patch series remove reference of TIF_USEDFPU on nds32, arm and arm64 as the flag is not inuse.

Cheers,

Cc Greentime Hu <[email protected]>
Cc Vincent Chen <[email protected]>
Cc Russell King <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>

Julien Grall (3):
nds32: Removed unused thread flag TIF_USEDFPU
arm: Remove documentation about TIF_USEDFPU
arm64: Remove documentation about TIF_USEDFPU

 arch/arm/include/asm/thread_info.h   | 1 -
 arch/arm64/include/asm/thread_info.h | 1 -
 arch/nds32/include/asm/thread_info.h | 2 --
 3 files changed, 4 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/3 nds32: Removed unused thread flag TIF_USEDFPU

The bit TIF_USEDFPU is not used in the nds32 code.

Cc Greentime Hu <[email protected]>
Cc Vincent Chen <[email protected]>

---
Untested as I don't have a cross-compiler for it.

---
 arch/nds32/include/asm/thread_info.h | 2 --
 1 file changed, 2 deletions(-)
arch/nds32/include/asm/thread_info.h +0 -2
index bff741ff337b..8c610abe673a 100644
@@ -42,7 +42,6 @@ struct thread_info {
  *  TIF_SIGPENDING	- signal pending
  *  TIF_NEED_RESCHED	- rescheduling necessary
  *  TIF_NOTIFY_RESUME	- callback before returning to user
- *  TIF_USEDFPU		- FPU was used by this task this quantum (SMP)
  *  TIF_POLLING_NRFLAG	- true if poll_idle() is polling TIF_NEED_RESCHED
  */
 #define TIF_SIGPENDING		1
@@ -50,7 +49,6 @@ struct thread_info {
 #define TIF_SINGLESTEP		3
 #define TIF_NOTIFY_RESUME	4	/* callback before returning to user */
 #define TIF_SYSCALL_TRACE	8
-#define TIF_USEDFPU             16
 #define TIF_POLLING_NRFLAG	17
 #define TIF_MEMDIE		18
 #define TIF_FREEZE		19
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/3 arm: Remove documentation about TIF_USEDFPU

In reply to Julien Grall

TIF_USEDFPU is not defined as thread flags for Arm. So drop it from the documentation.

---
 arch/arm/include/asm/thread_info.h | 1 -
 1 file changed, 1 deletion(-)
arch/arm/include/asm/thread_info.h +0 -1
index 286eb61c632b..779927f0c3c1 100644
@@ -132,7 +132,6 @@ extern int vfp_restore_user_hwstate(struct user_vfp *,
 
 /*
  * thread information flags:
- *  TIF_USEDFPU		- FPU was used by this task this quantum (SMP)
  *  TIF_POLLING_NRFLAG	- true if poll_idle() is polling TIF_NEED_RESCHED
  */
 #define TIF_SIGPENDING		0	/* signal pending */
Signature · 1 line
2.11.0
#3 lore raw

PATCH 3/3 arm64: Remove documentation about TIF_USEDFPU

In reply to Julien Grall

TIF_USEDFPU is not defined as thread flags for Arm64. So drop it from the documentation.

---
 arch/arm64/include/asm/thread_info.h | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/include/asm/thread_info.h +0 -1
index bbca68b54732..eb3ef73e07cf 100644
@@ -79,7 +79,6 @@ void arch_release_task_struct(struct task_struct *tsk);
  *  TIF_SIGPENDING	- signal pending
  *  TIF_NEED_RESCHED	- rescheduling necessary
  *  TIF_NOTIFY_RESUME	- callback before returning to user
- *  TIF_USEDFPU		- FPU was used by this task this quantum (SMP)
  */
 #define TIF_SIGPENDING		0
 #define TIF_NEED_RESCHED	1
Signature · 1 line
2.11.0
Acked-by on v1 3/3
#4 lore raw

Re: [PATCH 3/3] arm64: Remove documentation about TIF_USEDFPU

Quoted 16 lines · Julien Grall

TIF_USEDFPU is not defined as thread flags for Arm64. So drop it from the documentation.

---
 arch/arm64/include/asm/thread_info.h | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/include/asm/thread_info.h +0 -0
index bbca68b54732..eb3ef73e07cf 100644

arch/arm64/include/asm/thread_info.h void arch_release_task_struct(struct task_struct *tsk); · line 84

Quoted 7 lines
arch/arm64/include/asm/thread_info.h +0 -1
@@ -79,7 +79,6 @@ void arch_release_task_struct(struct task_struct *tsk);
  *  TIF_SIGPENDING	- signal pending
  *  TIF_NEED_RESCHED	- rescheduling necessary
  *  TIF_NOTIFY_RESUME	- callback before returning to user
- *  TIF_USEDFPU		- FPU was used by this task this quantum (SMP)
  */
 #define TIF_SIGPENDING		0
 #define TIF_NEED_RESCHED	1

Will