mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
thread: pad tid lock
On a kernel with other changes this bumps 104-way thread creation/destruction from 0.96 mln ops/s to 1.1 mln ops/s.
This commit is contained in:
parent
09ef995baf
commit
d1ca25be49
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ static int thread_unsuspend_one(struct thread *td, struct proc *p,
|
|||
bool boundary);
|
||||
static void thread_free_batched(struct thread *td);
|
||||
|
||||
static struct mtx tid_lock;
|
||||
static __exclusive_cache_line struct mtx tid_lock;
|
||||
static bitstr_t *tid_bitmap;
|
||||
|
||||
static MALLOC_DEFINE(M_TIDHASH, "tidhash", "thread hash");
|
||||
|
|
|
|||
Loading…
Reference in a new issue