diff options
author | psen <pankaj.sen@stericsson.com> | 2011-08-26 10:45:17 +0530 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 16:00:13 +0200 |
commit | 1eab00bcd2fe73d996f075bf625326142d01f72f (patch) | |
tree | be292f6032895b10de83e48438b956016bd5de5c | |
parent | ff9909a7d5cc24ab731de5f1fd4349e35b71540a (diff) |
Set Current Pid to Tid
* in case of tid is zero
* Check for KERNELRLEASE instead of MM_MAKEFILES_DIR in Makefile
-rw-r--r-- | drivers/staging/nmf-cm/Makefile | 2 | ||||
-rw-r--r-- | drivers/staging/nmf-cm/cm_syscall.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/nmf-cm/Makefile b/drivers/staging/nmf-cm/Makefile index 82fa97f81d1..0728ac5bc3f 100644 --- a/drivers/staging/nmf-cm/Makefile +++ b/drivers/staging/nmf-cm/Makefile @@ -7,7 +7,7 @@ # # Rules to build kernel modules # -ifndef MM_MAKEFILES_DIR +ifdef KERNELRELEASE # $(src): current relative dir; $(kbuild-dir): cur absolute dir ifdef kbuild-dir diff --git a/drivers/staging/nmf-cm/cm_syscall.c b/drivers/staging/nmf-cm/cm_syscall.c index 8a48ac10c60..70f73e8ad97 100644 --- a/drivers/staging/nmf-cm/cm_syscall.c +++ b/drivers/staging/nmf-cm/cm_syscall.c @@ -13,6 +13,7 @@ #include "cmld.h" #include <cm/engine/memory/inc/remote_allocator.h> #include <linux/kernel.h> +#include <linux/sched.h> /** Dequeue and free per-process messages for specific binding * @@ -1379,8 +1380,8 @@ int cmld_PrivReserveMemory(struct cm_process_priv *procPriv, unsigned int physAd __func__, current->pid, physAddr, (int)curr->tid);*/ err = -EBUSY; } else { - curr->tid = 0; //current->pid; + curr->tid = current->pid; err = 0; } break; |