summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/nvos/nvos.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/nvos/nvos.c')
-rw-r--r--arch/arm/mach-tegra/nvos/nvos.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/nvos/nvos.c b/arch/arm/mach-tegra/nvos/nvos.c
index 057f1e665676..b5e5b0181ea0 100644
--- a/arch/arm/mach-tegra/nvos/nvos.c
+++ b/arch/arm/mach-tegra/nvos/nvos.c
@@ -1105,6 +1105,14 @@ NvError NvOsSemaphoreUnmarshal(
return NvSuccess;
}
+int NvOsSemaphoreWaitInterruptible(NvOsSemaphoreHandle semaphore);
+int NvOsSemaphoreWaitInterruptible(NvOsSemaphoreHandle semaphore)
+{
+ NV_ASSERT( semaphore );
+
+ return down_interruptible( &semaphore->sem );
+}
+
void NvOsSemaphoreWait(NvOsSemaphoreHandle semaphore)
{
int ret;