John Baldwin
7e3a96ea37
Some small fixes to CPU accounting for threads:
...
- Only initialize the per-cpu switchticks and switchtime in sched_throw()
for the very first context switch on APs during boot. This avoids a
small gap between the middle of thread_exit() and sched_throw() where
time is not accounted to any thread.
- In thread_exit(), update the timestamp bookkeeping to track the changes
to mi_switch() introduced by td_rux so that the code once again matches
the comment claiming it is mimicing mi_switch(). Specifically, only
update the per-thread stats directly and depend on ruxagg() to update
p_rux rather than adjusting p_rux directly. While here, move the
timestamp bookkeeping as late in the function as possible.
Reviewed by: bde, kib
MFC after: 1 week
2012-01-03 21:03:28 +00:00
..
2011-04-29 21:36:45 +00:00
2011-08-18 22:51:30 +00:00
2011-05-24 13:22:40 +00:00
2011-06-16 22:00:59 +00:00
2011-10-15 12:35:18 +00:00
2011-04-05 20:23:59 +00:00
2011-03-06 22:59:30 +00:00
2011-10-27 10:25:11 +00:00
2011-11-21 01:26:10 +00:00
2011-09-16 13:58:51 +00:00
2010-04-26 13:48:22 +00:00
2011-11-07 15:43:11 +00:00
2011-06-22 16:40:45 +00:00
2011-12-22 16:01:10 +00:00
2011-12-17 15:50:45 +00:00
2011-09-16 13:58:51 +00:00
2011-11-07 15:43:11 +00:00
2011-12-05 10:34:52 +00:00
2011-11-08 15:17:54 +00:00
2011-11-15 01:48:53 +00:00
2011-11-07 06:44:47 +00:00
2011-09-16 13:58:51 +00:00
2011-11-07 15:43:11 +00:00
2011-09-16 13:58:51 +00:00
2011-09-27 13:17:02 +00:00
2011-09-17 19:55:32 +00:00
2011-11-07 06:44:47 +00:00
2011-12-01 07:19:13 +00:00
2011-10-03 17:40:55 +00:00
2010-04-30 03:10:53 +00:00
2011-04-13 11:28:46 +00:00
2011-05-31 15:11:43 +00:00
2012-01-02 12:12:10 +00:00
2011-11-07 15:43:11 +00:00
2011-04-12 08:13:18 +00:00
2011-08-18 22:51:30 +00:00
2012-01-02 12:12:10 +00:00
2011-12-08 03:20:38 +00:00
2012-01-02 12:12:10 +00:00
2011-12-11 21:02:01 +00:00
2011-11-07 06:44:47 +00:00
2011-09-16 13:58:51 +00:00
2011-12-07 16:27:23 +00:00
2010-06-21 09:55:56 +00:00
2011-07-17 23:05:24 +00:00
2011-09-16 13:58:51 +00:00
2011-12-11 21:02:01 +00:00
2011-12-24 01:32:01 +00:00
2010-11-25 20:05:11 +00:00
2011-05-05 14:39:14 +00:00
2011-11-07 15:43:11 +00:00
2010-08-22 11:18:57 +00:00
2011-12-17 22:18:26 +00:00
2011-09-16 13:58:51 +00:00
2011-12-12 07:46:10 +00:00
2011-11-07 06:44:47 +00:00
2011-12-13 14:00:27 +00:00
2011-12-11 21:02:01 +00:00
2011-12-11 21:02:01 +00:00
2010-06-21 09:55:56 +00:00
2011-12-17 15:11:22 +00:00
2011-11-07 15:43:11 +00:00
2011-12-04 21:27:41 +00:00
2011-12-12 10:05:13 +00:00
2011-12-11 21:02:01 +00:00
2010-10-21 20:31:50 +00:00
2011-09-16 13:58:51 +00:00
2011-12-24 01:32:01 +00:00
2011-12-13 00:38:50 +00:00
2012-01-03 21:03:28 +00:00
2011-09-16 13:58:51 +00:00
2011-11-07 06:44:47 +00:00
2011-12-03 12:30:58 +00:00
2011-09-16 13:58:51 +00:00
2011-06-07 02:50:14 +00:00
2011-04-16 16:20:51 +00:00
2011-06-16 17:41:21 +00:00
2011-07-10 00:53:04 +00:00
2011-03-01 13:28:27 +00:00
2011-11-21 01:26:10 +00:00
2011-09-16 13:58:51 +00:00
2011-07-17 23:05:24 +00:00
2012-01-03 21:03:28 +00:00
2012-01-03 21:03:28 +00:00
2011-10-05 17:29:49 +00:00
2010-08-30 16:30:18 +00:00
2011-01-06 22:09:37 +00:00
2011-12-03 15:41:37 +00:00
2010-05-05 20:39:02 +00:00
2011-12-02 22:03:27 +00:00
2011-01-09 14:34:56 +00:00
2011-11-07 15:43:11 +00:00
2010-09-02 19:40:28 +00:00
2010-06-21 09:55:56 +00:00
2011-11-19 00:20:28 +00:00
2012-01-02 12:12:10 +00:00
2011-12-17 15:11:22 +00:00
2011-11-15 20:11:03 +00:00
2011-12-11 21:02:01 +00:00
2011-01-04 10:59:38 +00:00
2011-11-18 03:05:20 +00:00
2011-02-09 19:08:21 +00:00
2011-05-31 22:39:32 +00:00
2011-03-23 16:38:29 +00:00
2011-11-07 06:44:47 +00:00
2011-10-16 14:16:46 +00:00
2011-11-07 15:43:11 +00:00
2011-11-07 15:43:11 +00:00
2011-11-19 14:10:16 +00:00
2011-08-19 08:29:10 +00:00
2011-11-07 15:43:11 +00:00
2011-11-07 15:43:11 +00:00
2011-11-16 19:06:55 +00:00
2011-10-30 02:19:39 +00:00
2011-09-15 08:42:06 +00:00
2011-10-03 16:58:58 +00:00
2011-11-07 15:43:11 +00:00
2011-11-14 07:12:10 +00:00
2011-02-21 09:01:34 +00:00
2011-12-11 21:02:01 +00:00
2011-10-18 07:28:58 +00:00
2011-11-13 10:28:01 +00:00
2011-12-14 22:26:39 +00:00
2011-09-16 13:58:51 +00:00
2011-09-16 13:58:51 +00:00
2011-08-16 20:07:47 +00:00
2011-11-21 01:26:10 +00:00
2011-11-21 01:26:10 +00:00
2011-11-21 01:26:10 +00:00
2011-09-16 13:58:51 +00:00
2011-09-16 13:58:51 +00:00
2011-09-16 13:58:51 +00:00
2012-01-02 12:12:10 +00:00
2011-06-26 18:26:20 +00:00
2011-09-16 13:58:51 +00:00
2011-01-04 10:59:38 +00:00
2011-06-26 18:26:20 +00:00
2011-09-16 13:58:51 +00:00
2011-02-25 10:11:01 +00:00
2010-06-21 09:55:56 +00:00
2011-02-21 09:01:34 +00:00
2012-01-02 12:12:10 +00:00
2011-09-16 13:58:51 +00:00
2011-12-15 15:17:19 +00:00
2011-12-13 00:38:50 +00:00
2011-11-14 18:21:27 +00:00
2011-09-16 13:58:51 +00:00
2011-11-07 15:43:11 +00:00
2011-09-16 13:58:51 +00:00
2011-09-16 13:58:51 +00:00
2011-11-30 17:39:00 +00:00
2011-12-12 10:05:13 +00:00
2011-03-16 16:22:59 +00:00
2011-11-19 07:50:49 +00:00
2011-09-16 13:58:51 +00:00
2011-09-13 21:01:26 +00:00
2012-01-01 18:45:59 +00:00
2011-11-08 10:18:07 +00:00
2011-12-17 15:26:34 +00:00
2011-12-23 20:11:37 +00:00
2011-12-16 20:10:00 +00:00
2011-11-04 04:02:50 +00:00
2011-12-23 20:11:37 +00:00