-/**
- * serial_omap_block_cpu_low_power_state - prevent MPU pwrdm from leaving ON
- * @up: struct uart_omap_port *
- *
- * Prevent the MPU powerdomain from entering a power state lower than
- * ON. (It should be sufficient to prevent it from entering INACTIVE,
- * but there is presently no easy way to do this.) This works around
- * a suspected silicon bug in the OMAP UART IP blocks. The UARTs should
- * wake the PRCM when the transmit FIFO threshold interrupt is raised, but
- * they do not. See also serial_omap_allow_cpu_low_power_state(). No
- * return value.
- */
-static void serial_omap_block_cpu_low_power_state(struct uart_omap_port *up)
-{
-#ifdef CONFIG_CPU_IDLE
- up->latency = 1;
- schedule_work(&up->qos_work);
-#else
- up->max_tx_count = 1;
-#endif
-}
-
-/**
- * serial_omap_allow_cpu_low_power_state - remove power state restriction on MPU
- * @up: struct uart_omap_port *
- *
- * Cancel the effects of serial_omap_block_cpu_low_power_state().
- * This should allow the MPU powerdomain to enter a power state lower
- * than ON, assuming the rest of the kernel is not restricting it.
- * This works around a suspected silicon bug in the OMAP UART IP
- * blocks. The UARTs should wake the PRCM when the transmit FIFO
- * threshold interrupt is raised, but they do not. No return value.
- */
-static void serial_omap_allow_cpu_low_power_state(struct uart_omap_port *up)
-{
-#ifdef CONFIG_CPU_IDLE
- up->latency = up->calc_latency;
- schedule_work(&up->qos_work);
-#else
- up->max_tx_count = up->port.fifosize / 4;
-#endif
-}
-