diff options
author | Hyungwoo Yang <hyungwoo.yang@intel.com> | 2019-01-30 12:30:47 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-26 05:09:12 -0800 |
commit | decc9452e981a7c8ce5c6b8983061a054057c615 (patch) | |
tree | eaea7bba6491f96bc06a77e2af2fd43d4b210894 /util/export_taskinfo.c | |
parent | 0a3f44e4f508d0c6a96519e6db97b2f2fd4bfb23 (diff) | |
download | chrome-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 'util/export_taskinfo.c')
-rw-r--r-- | util/export_taskinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/export_taskinfo.c b/util/export_taskinfo.c index 19109f131e..4c09bafb90 100644 --- a/util/export_taskinfo.c +++ b/util/export_taskinfo.c @@ -25,10 +25,10 @@ struct taskinfo { uint32_t stack_size; }; -#define TASK(n, r, d, s) { \ - .name = #n, \ - .routine = #r, \ - .stack_size = s, \ +#define TASK(n, r, d, s, ...) { \ + .name = #n, \ + .routine = #r, \ + .stack_size = s, \ }, static const struct taskinfo taskinfos[] = { CONFIG_TASK_LIST |