Peter Wemm
5dd883833c
Provide a streamlined '#define curthread __curthread()' for amd64 to avoid
...
the compiler having to parse and optimize the PCPU_GET(curthread) so often.
__curthread() is an inline optimized version of PCPU_GET(curthread) that
knows that pc_curthread is at offset zero in the pcpu struct. Add a
CTASSERT() to catch any possible changes to this. This accounts for
just over a 1% wall clock speedup for total kernel compile/link time,
and 20% compile time speedup on some specific files depending on which
compile options are used.
Approved by: re (jhb)
2003-11-20 22:54:44 +00:00
..
2003-11-17 06:10:15 +00:00
2003-11-20 22:54:44 +00:00
2003-09-25 01:10:26 +00:00
2003-11-20 20:28:18 +00:00
2003-11-09 09:17:26 +00:00
2003-11-09 09:17:26 +00:00
2003-11-19 04:12:32 +00:00
2003-11-20 20:07:39 +00:00
2003-11-07 08:54:27 +00:00
2003-11-12 04:22:37 +00:00
2003-09-28 06:02:33 +00:00
2003-11-20 22:21:51 +00:00
2003-11-19 04:14:42 +00:00
2003-11-18 18:17:39 +00:00
2003-11-05 11:56:58 +00:00
2003-11-10 14:20:34 +00:00
2003-11-19 15:40:23 +00:00
2003-11-20 16:42:39 +00:00
2003-11-13 10:02:12 +00:00
2003-10-18 14:10:28 +00:00
2003-11-20 15:35:48 +00:00
2003-09-26 20:26:25 +00:00
2003-11-19 05:08:27 +00:00
2003-11-20 20:07:39 +00:00
2003-11-13 05:23:58 +00:00
2003-11-18 00:39:07 +00:00
2003-11-18 00:39:07 +00:00
2003-11-18 20:43:23 +00:00
2003-11-20 20:07:39 +00:00
2003-11-20 21:47:20 +00:00
2003-11-18 00:39:07 +00:00
2003-11-18 00:39:07 +00:00
2003-11-18 00:39:07 +00:00
2003-11-18 00:39:07 +00:00
2003-09-27 12:01:01 +00:00
2003-09-26 20:26:25 +00:00
2003-11-14 20:54:10 +00:00
2003-11-15 01:25:26 +00:00
2003-11-15 05:03:15 +00:00
2003-11-17 00:56:53 +00:00
2003-11-19 22:42:34 +00:00
2003-11-17 23:13:08 +00:00
2003-11-09 09:17:26 +00:00
2003-11-14 19:00:32 +00:00
2003-09-13 18:46:24 +00:00
2003-11-17 06:10:15 +00:00
2003-11-20 04:42:50 +00:00
2003-11-18 04:11:52 +00:00
2003-11-16 23:40:06 +00:00
2003-11-20 22:50:26 +00:00
2003-10-16 13:29:26 +00:00
2003-11-16 07:08:27 +00:00
2003-11-19 18:48:45 +00:00
2003-06-26 03:52:48 +00:00