summaryrefslogtreecommitdiff
path: root/core/nds32/task.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@chromium.org>2020-05-27 10:14:44 +0800
committerCommit Bot <commit-bot@chromium.org>2020-05-29 04:03:11 +0000
commit7808773254b3c4b910eef167319b49e6acec738a (patch)
treedf55b6ca983d133c86e4572aaf11b54157d85101 /core/nds32/task.c
parent468f2fb73676f0a4db3cc62e4874d1962ba3746a (diff)
downloadchrome-ec-7808773254b3c4b910eef167319b49e6acec738a.tar.gz
core/riscv-rv32i: remove get_sw_int()
Inline the function definition. BRANCH=none BUG=b:146213943 BUG=b:157521370 TEST=1. make BOARD=asurada 2. flash_ec --board=asurada --image build/asurada/ec.bin 3. (EC console)> version Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org> Change-Id: Icfde6399b2dd560924128f9e7fbeb54efaa9c14c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2217595 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'core/nds32/task.c')
-rw-r--r--core/nds32/task.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/core/nds32/task.c b/core/nds32/task.c
index ea9e10e644..d9aa6beda9 100644
--- a/core/nds32/task.c
+++ b/core/nds32/task.c
@@ -249,14 +249,6 @@ int task_start_called(void)
return start_called;
}
-static int get_sw_int(void)
-{
- /* If this is a SW interrupt */
- if (get_itype() & 8)
- return sw_int_num;
- return 0;
-}
-
/**
* Scheduling system call
*
@@ -351,7 +343,7 @@ void __ram_code start_irq_handler(void)
asm volatile ("smw.adm $r0, [$sp], $r2, 0");
/* If this is a SW interrupt */
if (get_itype() & 8)
- ec_int = get_sw_int();
+ ec_int = sw_int_num;
else
ec_int = chip_get_ec_int();