解耦SLEEP和LPM,LPM在具体API实现,优化GPIOAPI,优化sleep头文件

Change-Id: I7b737054080cb31bf99b6810296fdc40aac925df
diff --git a/mbtk/libmbtk_lib/sleep/mbtk_sleep.c b/mbtk/libmbtk_lib/sleep/mbtk_sleep.c
index 6021b42..c2b8be0 100755
--- a/mbtk/libmbtk_lib/sleep/mbtk_sleep.c
+++ b/mbtk/libmbtk_lib/sleep/mbtk_sleep.c
@@ -1,32 +1,8 @@
 #include "mbtk_sleep.h"
 #include "mbtk_log.h"
 
-static int sleep_epoll_deregister(int epoll_fd,int fd )
-{
-    int  ret;
-    do {
-        ret = epoll_ctl( epoll_fd, EPOLL_CTL_DEL, fd, NULL );
-    } while (ret < 0 && errno == EINTR);
-    return ret;
-}
+static mbtk_lock_name_s mbtk_lock_name[LOCK_MAX_SIZE]={0};
 
-static int sleep_epoll_register(int epoll_fd, int fd)
-{
-    struct epoll_event  ev;
-    int    ret, flags;
-
-    /* important: make the fd non-blocking */
-    flags = fcntl(fd, F_GETFL);
-    fcntl(fd, F_SETFL, flags | O_NONBLOCK);
-
-    ev.events  = EPOLLIN;
-    ev.data.fd = fd;
-    do {
-        ret = epoll_ctl( epoll_fd, EPOLL_CTL_ADD, fd, &ev );
-    } while (ret < 0 && errno == EINTR);
-    
-    return ret;
-}
 
 int mbtk_autosuspend_enable(char enable)
 {