diff options
author | Angela Stegmaier <angelabaker@ti.com> | 2010-08-12 12:22:34 -0500 |
---|---|---|
committer | Ricardo Perez Olivares <x0081762@ti.com> | 2010-08-17 18:22:09 -0500 |
commit | 033b6908c334c7412693c2848bea20528c5b753e (patch) | |
tree | b4f4a1c38ce6e1c9efcff32516df5a0fb7ba40ff | |
parent | 79a308b7de607d3028223f32c822f7fad2348df8 (diff) |
SYSLINK: ipc - allow thread detach command during recovery
Allow thread detach ioctl command to go through even while recovering
from faults so that userspace thread can exit.
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
-rw-r--r-- | drivers/dsp/syslink/multicore_ipc/ipc_drv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/dsp/syslink/multicore_ipc/ipc_drv.c b/drivers/dsp/syslink/multicore_ipc/ipc_drv.c index 1b975235f00e..de3388494fa9 100644 --- a/drivers/dsp/syslink/multicore_ipc/ipc_drv.c +++ b/drivers/dsp/syslink/multicore_ipc/ipc_drv.c @@ -29,6 +29,7 @@ #include <ipc_ioctl.h> #include <ipc.h> #include <drv_notify.h> +#include <notify_ioctl.h> #include <nameserver.h> #ifdef CONFIG_SYSLINK_RECOVERY #include <plat/iommu.h> @@ -245,8 +246,10 @@ int ipc_ioctl(struct inode *ip, struct file *filp, u32 cmd, ulong arg) #ifdef CONFIG_SYSLINK_RECOVERY if (recover) { - retval = -EIO; - goto exit; + if (cmd != CMD_NOTIFY_THREADDETACH) { + retval = -EIO; + goto exit; + } } #endif /* Verify the memory and ensure that it is not is kernel |