diff options
author | jhb <jhb@FreeBSD.org> | 2004-06-28 16:21:51 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-06-28 16:21:51 +0000 |
commit | 49e92eb66dbc89536a22756b65f28fdb64c9dfec (patch) | |
tree | 0a84f56813c3fc1a5dbc75921c2e1080c051215e /sys/sys/interrupt.h | |
parent | 515258abfea6485668c15ea63e0247c2a1adfea0 (diff) | |
download | FreeBSD-src-49e92eb66dbc89536a22756b65f28fdb64c9dfec.zip FreeBSD-src-49e92eb66dbc89536a22756b65f28fdb64c9dfec.tar.gz |
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
Diffstat (limited to 'sys/sys/interrupt.h')
-rw-r--r-- | sys/sys/interrupt.h | 11 |
1 files changed, 5 insertions, 6 deletions
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; |