Skip to contentSkip to conversation

About task->used_math and TIF_USEDFPU

DISCUSSION zhan rongkai 2 participants 2 messages Dec 16, 2004 MIPS

lore
Share & tools
lore
#0 lore raw

hi all,

I am a little confused about the task_struct member 'used_math', and thread_info flag TIF_USEDFPU.

What are their meaning, and what is the difference between them?

thanks.

#1 lore raw
Quoted 7 lines · zhan rongkai

hi all,

I am a little confused about the task_struct member 'used_math', and thread_info flag TIF_USEDFPU.

What are their meaning, and what is the difference between them?

used_math is used to indicate whether a process has ever used FPU since it is created (which typically is true due to the glibc using FPU at the beginning of each program).

TIF_USEDFPU indicates whether a _running_ process has used FPU since it is context-switched on.

Jun