kern_mutex.c (167163) | kern_mutex.c (167365) |
---|---|
1/*- 2 * Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 20 unchanged lines hidden (view full) --- 29 * and BSDI $Id: synch_machdep.c,v 2.3.2.39 2000/04/27 03:10:25 cp Exp $ 30 */ 31 32/* 33 * Machine independent bits of mutex implementation. 34 */ 35 36#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 20 unchanged lines hidden (view full) --- 29 * and BSDI $Id: synch_machdep.c,v 2.3.2.39 2000/04/27 03:10:25 cp Exp $ 30 */ 31 32/* 33 * Machine independent bits of mutex implementation. 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/kern/kern_mutex.c 167163 2007-03-02 07:21:20Z kmacy $"); | 37__FBSDID("$FreeBSD: head/sys/kern/kern_mutex.c 167365 2007-03-09 16:04:44Z jhb $"); |
38 39#include "opt_adaptive_mutexes.h" 40#include "opt_ddb.h" 41#include "opt_global.h" 42#include "opt_mutex_wake_all.h" 43#include "opt_sched.h" 44 45#include <sys/param.h> --- 45 unchanged lines hidden (view full) --- 91#ifdef DDB 92static void db_show_mtx(struct lock_object *lock); 93#endif 94 95/* 96 * Lock classes for sleep and spin mutexes. 97 */ 98struct lock_class lock_class_mtx_sleep = { | 38 39#include "opt_adaptive_mutexes.h" 40#include "opt_ddb.h" 41#include "opt_global.h" 42#include "opt_mutex_wake_all.h" 43#include "opt_sched.h" 44 45#include <sys/param.h> --- 45 unchanged lines hidden (view full) --- 91#ifdef DDB 92static void db_show_mtx(struct lock_object *lock); 93#endif 94 95/* 96 * Lock classes for sleep and spin mutexes. 97 */ 98struct lock_class lock_class_mtx_sleep = { |
99 "sleep mutex", 100 LC_SLEEPLOCK | LC_RECURSABLE, | 99 .lc_name = "sleep mutex", 100 .lc_flags = LC_SLEEPLOCK | LC_RECURSABLE, |
101#ifdef DDB | 101#ifdef DDB |
102 db_show_mtx | 102 .lc_ddb_show = db_show_mtx, |
103#endif 104}; 105struct lock_class lock_class_mtx_spin = { | 103#endif 104}; 105struct lock_class lock_class_mtx_spin = { |
106 "spin mutex", 107 LC_SPINLOCK | LC_RECURSABLE, | 106 .lc_name = "spin mutex", 107 .lc_flags = LC_SPINLOCK | LC_RECURSABLE, |
108#ifdef DDB | 108#ifdef DDB |
109 db_show_mtx | 109 .lc_ddb_show = db_show_mtx, |
110#endif 111}; 112 113/* 114 * System-wide mutexes 115 */ 116struct mtx sched_lock; 117struct mtx Giant; --- 640 unchanged lines hidden --- | 110#endif 111}; 112 113/* 114 * System-wide mutexes 115 */ 116struct mtx sched_lock; 117struct mtx Giant; --- 640 unchanged lines hidden --- |