thread: Add td_type field; this avoids blowout td_flags w/ type flags
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 13 Dec 2012 06:12:16 +0000 (14:12 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 13 Dec 2012 06:50:16 +0000 (14:50 +0800)
commitf256b6c03397badf8e8f40e47cc0c0e0ed93f284
tree7ad9d55d166a969811a356d32488ea27faa31cd1
parent257c30fe8c2ffe7c85101502b37f536b5c47b226
thread: Add td_type field; this avoids blowout td_flags w/ type flags

- Replace TDF_CRYPTO with TD_TYPE_CRYPTO
- All lwkt threads are created as TD_TYPE_GENERIC
- Netisr threads now mark themselves as TD_TYPE_NETISR

Discussed-with: sjg@ and dillon@
Approved-by: dillon@
sys/kern/lwkt_thread.c
sys/net/netisr.c
sys/opencrypto/crypto.c
sys/sys/thread.h