void __lockfunc _unlock_kernel(const char *func, const char *file, int line)
{
	BUG_ON(current->lock_depth < 0);
	if (likely(--current->lock_depth < 0))
		__unlock_kernel();

	trace_unlock_kernel(func, file, line);
}
Beispiel #2
0
void __lockfunc _unlock_kernel(const char *func, const char *file, int line)
{
	BUG_ON(current->lock_depth < 0);

	if (likely(--current->lock_depth < 0)) {
#ifdef CONFIG_DEBUG_RT_MUTEXES
		current->last_kernel_lock = NULL;
#endif
		mutex_unlock(&kernel_sem);
	}
	trace_unlock_kernel(func, file, line);
}