From 49e92eb66dbc89536a22756b65f28fdb64c9dfec Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 28 Jun 2004 16:21:51 +0000 Subject: Adjust the priorities of software interrupts. Bump SWI_CLOCK up to 5 and bump all of the taskqueue swi's to 6. This gives callouts higher priority than taskqueue tasks and gives all taskqueue tasks the same priority. Discussed with: bde --- sys/sys/interrupt.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sys/sys/interrupt.h') diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h index 63e9bac..7f7ddef 100644 --- a/sys/sys/interrupt.h +++ b/sys/sys/interrupt.h @@ -85,19 +85,18 @@ struct ithd { #define SWI_DELAY 0x2 /* - * Software interrupt bit numbers in priority order. The priority only - * determines which swi will be dispatched next; a higher priority swi - * may be dispatched when a nested h/w interrupt handler returns. + * Software interrupt numbers in priority order. The priority determines + * the priority of the corresponding interrupt thread. */ #define SWI_TTY 0 #define SWI_NET 1 #define SWI_CAMNET 2 #define SWI_CAMBIO 3 #define SWI_VM 4 -#define SWI_TQ_FAST 5 +#define SWI_CLOCK 5 +#define SWI_TQ_FAST 6 +#define SWI_TQ 6 #define SWI_TQ_GIANT 6 -#define SWI_TQ 7 -#define SWI_CLOCK 8 extern struct ithd *tty_ithd; extern struct ithd *clk_ithd; -- cgit v1.1