diff options
author | Rafael Vanoni <rafael.vanoni@sun.com> | 2009-11-13 01:32:32 -0800 |
---|---|---|
committer | Rafael Vanoni <rafael.vanoni@sun.com> | 2009-11-13 01:32:32 -0800 |
commit | d3d50737e566cade9a08d73d2af95105ac7cd960 (patch) | |
tree | 399b76a3f6bf107e2ff506d8f9c3333654b29fc7 /usr/src/uts/common/os/panic.c | |
parent | 1eff5f7761619411b3c31280fcd96cefc32968b7 (diff) | |
download | illumos-gate-d3d50737e566cade9a08d73d2af95105ac7cd960.tar.gz |
PSARC/2009/396 Tickless Kernel Architecture / lbolt decoupling
6860030 tickless clock requires a clock() decoupled lbolt / lbolt64
Portions contributed by Chad Mynhier <cmynhier@gmail.com>
Diffstat (limited to 'usr/src/uts/common/os/panic.c')
-rw-r--r-- | usr/src/uts/common/os/panic.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/src/uts/common/os/panic.c b/usr/src/uts/common/os/panic.c index 26d4b98e82..ec4bec5c37 100644 --- a/usr/src/uts/common/os/panic.c +++ b/usr/src/uts/common/os/panic.c @@ -142,6 +142,7 @@ #include <sys/errorq.h> #include <sys/panic.h> #include <sys/fm/util.h> +#include <sys/clock_impl.h> /* * Panic variables which are set once during the QUIESCE state by the @@ -221,6 +222,11 @@ panicsys(const char *format, va_list alist, struct regs *rp, int on_panic_stack) t->t_bound_cpu = cp; t->t_preempt++; + /* + * Switch lbolt to event driven mode. + */ + lbolt_hybrid = lbolt_event_driven; + panic_enter_hw(s); /* @@ -275,8 +281,8 @@ panicsys(const char *format, va_list alist, struct regs *rp, int on_panic_stack) panicstr = (char *)format; va_copy(panicargs, alist); - panic_lbolt = lbolt; - panic_lbolt64 = lbolt64; + panic_lbolt = (clock_t)LBOLT_NO_ACCOUNT; + panic_lbolt64 = LBOLT_NO_ACCOUNT; panic_hrestime = hrestime; panic_hrtime = gethrtime_waitfree(); panic_thread = t; |