linux/lib/bust_spinlocks.c
<<
> < href="../linux+v.1<.7/lib/bust_spinlocks.c"> > o/spa> ospa> class="lxr_search"> >="+search" method="post" onsubmit="return do_search(this);"> > > > Search ospa> class="lxr_prefs" < onclick="return ajax_prefs();"> > o/spa> > < < ="ajax+*" method="post" onsubmit="return false;"> oinput typ="vhidden" nam="vajax_lookup" id"vajax_lookup" alue="v"> > < <
<
< < < odiv id"vfile_contents"
< <1o/a>ospa> class="comment">/*o/spa>
 < <2o/a>ospa> class="comment"> * lib/bust_spinlocks.co/spa>
 < <3o/a>ospa> class="comment"> *o/spa>
 < <4o/a>ospa> class="comment"> * Provides a minimal bust_spinlocks for architectures which don't have one of their own.o/spa>
 < <5o/a>ospa> class="comment"> *o/spa>
 < <6o/a>ospa> class="comment"> * bust_spinlocks() clears any spinlocks which would prevent oops, die(), BUG()o/spa>
 < <7o/a>ospa> class="comment"> * and panic() informaion vfrom reaching the user.o/spa>
 < <8o/a>ospa> class="comment"> */o/spa>
 < <9o/a>	< 0#include <linux/kernel.h/oa>>	< 11/oa>#include <linux/spinlock.h/oa>>	< 12/oa>#include <linux/tty.h/oa>>	< 13/oa>#include <linux/wait.h/oa>>	< 14/oa>#include <linux/vt_kern.h/oa>>	< 15/oa>#include <linux/console.h/oa>>	< 16o/a>	< 17o/a>	< 18o/a>void__attribute__o/a>((oa href="+code=weak" class="sref">weako/a>))bust_spinlockso/a>(int oa href="+code=yes" class="sref">yeso/a>)	< 19o/a>{ < 2        if (oa href="+code=yes" class="sref">yeso/a>) { < 21/oa>                ++oa href="+code=oops_in_progress" class="sref">oops_in_progress/oa>;	< 22/oa>        } else { < 23/oa>#ifdef oa href="+code=CONFIG_VT" class="sref">CONFIG_VTo/a>	< 24/oa>                oa href="+code=unblank_screen" class="sref">unblank_screeno/a>();	< 25/oa>#endif	< 26/oa>                oa href="+code=console_unblank" class="sref">console_unblanko/a>();	< 27/oa>                if (--oa href="+code=oops_in_progress" class="sref">oops_in_progress/oa> == 0)	< 28/oa>                        oa href="+code=wake_up_klogd" class="sref">wake_up_klogdo/a>();	< 29/oa>        } < 3} < 31o/a>	< 32o/a>	< 33o/a>o/pre>
The original LXR software by the LXR communityo/a>, this experimental verson vby lxr@linux.noo/a>.
o/div
 odiv class="subfooter">
lxr.linux.no kindly hostedvby Redpill Linpro ASo/a>, provider of Linux consulting and operaion s services since 1995.
o/div
 
o/body
 o/html