summaryrefslogtreecommitdiff
path: root/core/minute-ia/config_core.h
diff options
context:
space:
mode:
authorHyungwoo Yang <hyungwoo.yang@intel.com>2019-01-30 12:30:47 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-02-26 05:09:12 -0800
commitdecc9452e981a7c8ce5c6b8983061a054057c615 (patch)
treeeaea7bba6491f96bc06a77e2af2fd43d4b210894 /core/minute-ia/config_core.h
parent0a3f44e4f508d0c6a96519e6db97b2f2fd4bfb23 (diff)
downloadchrome-ec-decc9452e981a7c8ce5c6b8983061a054057c615.tar.gz
ish: save/restore FPU context only for the task uses FPU
Currently we save/retore FPU H/W context for every task on every contxt switch. This hurts overall performance of ISH. This patch allows save and restore FPU H/W context only for a task that declares it uses FPU. BRANCH=none BUG=none TEST=verified in Atlas platform Change-Id: Ic2f0bbf59f655661e2dd788c688edc4e83068c1c Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.com> Reviewed-on: https://chromium-review.googlesource.com/1448818 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'core/minute-ia/config_core.h')
-rw-r--r--core/minute-ia/config_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/minute-ia/config_core.h b/core/minute-ia/config_core.h
index 20f4404d38..47121642a4 100644
--- a/core/minute-ia/config_core.h
+++ b/core/minute-ia/config_core.h
@@ -26,4 +26,9 @@
#define ASM_LOCK_PREFIX
#endif
+/*
+ * Flag indicates the task uses FPU H/W
+ */
+#define MIA_TASK_FLAG_USE_FPU 0x00000001
+
#endif /* __CROS_EC_CONFIG_CORE_H */