]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/wireless/libertas/thread.h
[PATCH] libertas: make debug configurable
[mirror_ubuntu-artful-kernel.git] / drivers / net / wireless / libertas / thread.h
index 207b8a6cc33d632c0214a5d75eac182ff7dc5ef6..b1f34d92ff3e3ca81592d35199b4fe04a25a7966 100644 (file)
@@ -21,11 +21,11 @@ static inline void wlan_activate_thread(struct wlan_thread * thr)
 
 static inline void wlan_deactivate_thread(struct wlan_thread * thr)
 {
-       ENTER();
+       lbs_deb_enter(LBS_DEB_THREAD);
 
        thr->pid = 0;
 
-       LEAVE();
+       lbs_deb_leave(LBS_DEB_THREAD);
 }
 
 static inline void wlan_create_thread(int (*wlanfunc) (void *),
@@ -36,7 +36,7 @@ static inline void wlan_create_thread(int (*wlanfunc) (void *),
 
 static inline int wlan_terminate_thread(struct wlan_thread * thr)
 {
-       ENTER();
+       lbs_deb_enter(LBS_DEB_THREAD);
 
        /* Check if the thread is active or not */
        if (!thr->pid) {
@@ -45,7 +45,7 @@ static inline int wlan_terminate_thread(struct wlan_thread * thr)
        }
        kthread_stop(thr->task);
 
-       LEAVE();
+       lbs_deb_leave(LBS_DEB_THREAD);
        return 0;
 }