Update of /cvsroot/linuxconsole/ruby/linux/lib
In directory usw-pr-cvs1:/tmp/cvs-serv9844
Modified Files:
bust_spinlocks.c
Log Message:
Minor fixes for definetations and code alignment to make diff smaller.
Index: bust_spinlocks.c
===================================================================
RCS file: /cvsroot/linuxconsole/ruby/linux/lib/bust_spinlocks.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- bust_spinlocks.c 2001/10/08 17:21:54 1.6
+++ bust_spinlocks.c 2001/10/12 16:55:04 1.7
@@ -7,37 +7,35 @@
* bust_spinlocks() clears any spinlocks which would prevent oops, die(),
* BUG() and panic() information from reaching the user.
*/
-
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/tty.h>
#include <linux/wait.h>
-#include <asm/hardirq.h>
extern spinlock_t timerlist_lock;
void bust_spinlocks(int yes)
{
- spin_lock_init(&timerlist_lock);
- if (yes) {
- oops_in_progress = 1;
+ spin_lock_init(&timerlist_lock);
+ if (yes) {
+ oops_in_progress = 1;
#ifdef CONFIG_SMP
- atomic_set(&global_irq_lock,0);
+ atomic_set(&global_irq_lock,0);
#endif
- } else {
- int loglevel_save = console_loglevel;
- oops_in_progress = 0;
- /*
- * OK, the message is on the console. Now we call printk()
- * without oops_in_progress set so that printk() will give
- * klogd and the blanked console a poke. Hold onto your hats...
- */
- console_loglevel = 15; /* NMI oopser may have shut the
- console up */
- printk(" ");
- console_loglevel = loglevel_save;
- }
+ } else {
+ int loglevel_save = console_loglevel;
+ oops_in_progress = 0;
+ /*
+ * OK, the message is on the console. Now we call printk()
+ * without oops_in_progress set so that printk() will give
+ * klogd and the blanked console a poke. Hold onto your hats...
+ */
+ console_loglevel = 15; /* NMI oopser may have shut the console up */
+ printk(" ");
+ console_loglevel = loglevel_save;
+ }
}
EXPORT_SYMBOL(bust_spinlocks);
|