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/Kconfig | |
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/Kconfig')
-rw-r--r-- | arch/mn10300/Kconfig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/mn10300/Kconfig b/arch/mn10300/Kconfig index 7bd920b1c06f..a1f334ce0a36 100644 --- a/arch/mn10300/Kconfig +++ b/arch/mn10300/Kconfig | |||
@@ -140,6 +140,21 @@ config FPU | |||
140 | default y | 140 | default y |
141 | depends on MN10300_PROC_MN103E010 | 141 | depends on MN10300_PROC_MN103E010 |
142 | 142 | ||
143 | config LAZY_SAVE_FPU | ||
144 | bool "Save FPU state lazily" | ||
145 | default y | ||
146 | depends on FPU && !SMP | ||
147 | help | ||
148 | Enable this to be lazy in the saving of the FPU state to the owning | ||
149 | task's thread struct. This is useful if most tasks on the system | ||
150 | don't use the FPU as only those tasks that use it will pass it | ||
151 | between them, and the state needn't be saved for a task that isn't | ||
152 | using it. | ||
153 | |||
154 | This can't be so easily used on SMP as the process that owns the FPU | ||
155 | state on a CPU may be currently running on another CPU, so for the | ||
156 | moment, it is disabled. | ||
157 | |||
143 | source "arch/mn10300/mm/Kconfig.cache" | 158 | source "arch/mn10300/mm/Kconfig.cache" |
144 | 159 | ||
145 | config MN10300_TLB_USE_PIDR | 160 | config MN10300_TLB_USE_PIDR |