diff options
author | Akira Takeuchi <takeuchi.akr@jp.panasonic.com> | 2010-10-27 12:28:52 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2010-10-27 12:28:52 -0400 |
commit | 278d91c4609d55202c1e63d5fc5f01466cc7bbab (patch) | |
tree | 8b0c863837508959430c1741e2e5a2d37d2890d4 /arch/mn10300/kernel/asm-offsets.c | |
parent | 965ea4bbb9ae926358273368144ba838c561bc38 (diff) |
MN10300: Make the FPU operate in non-lazy mode under SMP
Make the FPU operate in non-lazy mode under SMP so that when the process that
is currently using the FPU migrates to a different CPU, we don't have to ping
its previous CPU to flush the FPU context.
Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/kernel/asm-offsets.c')
-rw-r--r-- | arch/mn10300/kernel/asm-offsets.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mn10300/kernel/asm-offsets.c b/arch/mn10300/kernel/asm-offsets.c index 02dc7e461fef..78e290e342fc 100644 --- a/arch/mn10300/kernel/asm-offsets.c +++ b/arch/mn10300/kernel/asm-offsets.c | |||
@@ -67,6 +67,15 @@ void foo(void) | |||
67 | OFFSET(THREAD_A3, thread_struct, a3); | 67 | OFFSET(THREAD_A3, thread_struct, a3); |
68 | OFFSET(THREAD_USP, thread_struct, usp); | 68 | OFFSET(THREAD_USP, thread_struct, usp); |
69 | OFFSET(THREAD_FRAME, thread_struct, __frame); | 69 | OFFSET(THREAD_FRAME, thread_struct, __frame); |
70 | #ifdef CONFIG_FPU | ||
71 | OFFSET(THREAD_FPU_FLAGS, thread_struct, fpu_flags); | ||
72 | OFFSET(THREAD_FPU_STATE, thread_struct, fpu_state); | ||
73 | DEFINE(__THREAD_USING_FPU, THREAD_USING_FPU); | ||
74 | DEFINE(__THREAD_HAS_FPU, THREAD_HAS_FPU); | ||
75 | #endif /* CONFIG_FPU */ | ||
76 | BLANK(); | ||
77 | |||
78 | OFFSET(TASK_THREAD, task_struct, thread); | ||
70 | BLANK(); | 79 | BLANK(); |
71 | 80 | ||
72 | DEFINE(CLONE_VM_asm, CLONE_VM); | 81 | DEFINE(CLONE_VM_asm, CLONE_VM); |