svn commit: r240475 - in head/sys: dev/hwpmc kern

Konstantin Belousov kostikbel at gmail.com
Fri Sep 14 04:20:47 UTC 2012


On Thu, Sep 13, 2012 at 10:26:22PM +0000, Attilio Rao wrote:
> Author: attilio
> Date: Thu Sep 13 22:26:22 2012
> New Revision: 240475
> URL: http://svn.freebsd.org/changeset/base/240475
> 
> Log:
>   Remove all the checks on curthread != NULL with the exception of some MD
>   trap checks (eg. printtrap()).
>   
>   Generally this check is not needed anymore, as there is not a legitimate
>   case where curthread != NULL, after pcpu 0 area has been properly
>   initialized.
I do not disagree with the patch, but I do with this statement.
During the AP startup, there is indeed a window while curthread is NULL.
Unfortunately, trying to panic there is worse then not panic.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20120914/5dd45450/attachment.pgp


More information about the svn-src-all mailing list