do { (void)sizeof (lock);(void)sizeof (key); } while (0)
/* This has to be a macro, so that `subclass' can be undefined in kernels that
* do not support lockdep. */
+
+
+static inline void lockdep_off(void)
+{
+}
+
+static inline void lockdep_on(void)
+{
+}
+
#endif /* lockdep_set_class */
#ifndef CONFIG_DEBUG_LOCK_ALLOC
{
}
+static inline void lockdep_off(void)
+{
+}
+
+static inline void lockdep_on(void)
+{
+}
+
/* This has to be a macro, so that can be undefined in kernels that do not
* support lockdep. */
#define mutex_lock_nested(mutex, subclass) mutex_lock(mutex)
#define down_read_nested(lock, subclass) down_read(lock)
#define down_write_nested(lock, subclass) down_write(lock)
+
/* !__KERNEL__ */
#endif
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
static inline void
* Zero: waiting timeouts
* Non Zero: event signaled ...
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Warning:
*
* for spinlock operations, try to grab nesting acquisition of
- * spinlock will cause dead-lock in MP system and current irql
+ * spinlock will cause dead-lock in MP system and current irql
* overwritten for UP system. (UP system could allow nesting spin
* acqisition, because it's not spin at all just raising the irql.)
*
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* For winnt system, we need this routine to delete the ERESOURCE.
* Just define it NULL for other systems.
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Zero: failed to acquire the read lock
* Non-Zero: succeeded to acquire the read lock
*
- * Notes:
+ * Notes:
* This routine will return immediately without waiting.
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Zero: failed to acquire the write lock
* Non-Zero: succeeded to acquire the read lock
*
- * Notes:
+ * Notes:
* This routine will return immediately without waiting.
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
struct lock_class_key {int foo;};
#define lockdep_set_class(lock, class) do {} while(0)
+static inline void lockdep_off(void)
+{
+}
+
+static inline void lockdep_on(void)
+{
+}
+
/*
* Semaphore
*
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
#define mutex_init init_mutex
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/
* Return Value:
* N/A
*
- * Notes:
+ * Notes:
* N/A
*/