From bbb6461b154364e2f5acabe3506a358db32d50e8 Mon Sep 17 00:00:00 2001 From: Hyungwoo Yang Date: Tue, 29 Jan 2019 17:09:05 -0800 Subject: ish: remove unnecessary interrupt_enable() call interrupt is already enabled when the first task(hook_task) scheduled. this patch removes unnecessary interrupt_enable(). BRANCH=none BUG=none TEST=verified in Atlas platform Change-Id: I4b1458a6ad2d72347720630181ef7e35bc7fc66b Reviewed-on: https://chromium-review.googlesource.com/1444538 Commit-Ready: Hyungwoo Yang Tested-by: Hyungwoo Yang Reviewed-by: Hyungwoo Yang Reviewed-by: Jett Rink --- chip/ish/uart.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'chip/ish/uart.c') diff --git a/chip/ish/uart.c b/chip/ish/uart.c index e0530a223a..5076f5eeaf 100644 --- a/chip/ish/uart.c +++ b/chip/ish/uart.c @@ -164,8 +164,6 @@ static void uart_hw_init(enum UART_PORT id) uint8_t fcr = 0; struct uart_ctx *ctx = &uart_ctx[id]; - interrupt_disable(); - /* Calculate baud rate divisor */ divisor = (ctx->input_freq / ctx->baud_rate) >> 4; @@ -205,7 +203,6 @@ static void uart_hw_init(enum UART_PORT id) #else REG8(IER(ctx->id)) = IER_RECV; #endif - interrupt_enable(); } static void uart_stop_hw(enum UART_PORT id) -- cgit v1.2.1