diff options
author | Aseda Aboagye <aaboagye@google.com> | 2015-10-12 17:52:29 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-19 18:21:22 -0700 |
commit | 590caace95a27322f4729913ec041a582c1ea88b (patch) | |
tree | c3d0a1aa26ca7225e128930137fb911e72f5bc14 /include/port80.h | |
parent | 096edc1de9a7eeb4f90b9849cff6a8667bb15d30 (diff) | |
download | chrome-ec-590caace95a27322f4729913ec041a582c1ea88b.tar.gz |
mec1322: Change the Port 80 task to a timer IRQ.
The port 80 task just polls every 1ms until disabled when the system
goes into suspend. Therefore, this commit configures a 1ms timer
interrupt that will be used for the port 80 writes instead of using an
entire task. This saves task stack space as well as context switches.
BUG=chrome-os-partner:46062
BUG=chrome-os-partner:46063
BRANCH=None
TEST=Flash GLaDOS and verify using the `port80' console comamnd that
there are bytes in the port80 history.
TEST=make -j buildall tests
Change-Id: I65b48217a638c1f6ae1ac86471f9a98e0ec4533a
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/305591
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/port80.h')
-rw-r--r-- | include/port80.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/port80.h b/include/port80.h index 470b01cc4b..c134dd92cf 100644 --- a/include/port80.h +++ b/include/port80.h @@ -23,7 +23,6 @@ enum port_80_event { */ void port_80_write(int data); -#ifdef HAS_TASK_PORT80 /** * Chip specific function to read from port 80. * @@ -31,6 +30,5 @@ void port_80_write(int data); * or PORT_80_IGNORE if no data is available. */ int port_80_read(void); -#endif #endif /* __CROS_EC_PORT80_H */ |