[RAMEN9610-15140] [COMMON][MODAP-30861] modify wakeup time when driver receive packet.
authorJiyoung Jeong <ji_0.jeong@samsung.com>
Wed, 15 May 2019 05:34:30 +0000 (14:34 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:32 +0000 (23:45 +0900)
Change-Id: I397f744364afc7d9d6b66ca5029bddbd06c43dbb
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
drivers/misc/modem_if/modem_main.c

index 919a4d38eb2bfaf8d3919896ba28a985b1d9d2ec..ac9230cce3f625c3e8e027248b8bd994b7a77238 100644 (file)
@@ -45,6 +45,7 @@
 
 #define FMT_WAKE_TIME  (HZ/2)
 #define RAW_WAKE_TIME  (HZ*6)
+#define NET_WAKE_TIME  (HZ/2)
 
 struct mif_log log_info;
 
@@ -243,17 +244,17 @@ static int attach_devices(struct io_device *iod, enum modem_link tx_link)
 
        case IPC_RAW:
                wake_lock_init(&iod->wakelock, WAKE_LOCK_SUSPEND, iod->name);
-               iod->waketime = RAW_WAKE_TIME;
+               iod->waketime = NET_WAKE_TIME;
                break;
 
        case IPC_RFS:
                wake_lock_init(&iod->wakelock, WAKE_LOCK_SUSPEND, iod->name);
-               iod->waketime = RAW_WAKE_TIME;
+               iod->waketime = FMT_WAKE_TIME;
                break;
 
        case IPC_MULTI_RAW:
                wake_lock_init(&iod->wakelock, WAKE_LOCK_SUSPEND, iod->name);
-               iod->waketime = RAW_WAKE_TIME;
+               iod->waketime = NET_WAKE_TIME;
                break;
 
        case IPC_BOOT: