Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2012 23:23:09 +0200
From:      Alexander Motin <mav@FreeBSD.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r244249 - projects/calloutng/sys/dev/syscons
Message-ID:  <50CF8D3D.6030906@FreeBSD.org>
In-Reply-To: <201212171509.55216.jhb@freebsd.org>
References:  <201212151044.qBFAiG70038633@svn.freebsd.org> <201212171509.55216.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 17.12.2012 22:09, John Baldwin wrote:
> On Saturday, December 15, 2012 5:44:16 am Alexander Motin wrote:
>> Author: mav
>> Date: Sat Dec 15 10:44:16 2012
>> New Revision: 244249
>> URL: http://svnweb.freebsd.org/changeset/base/244249
>>
>> Log:
>>    Switch syscons from timeout() to callout_reset_flags() and specify that
>>    precision is not important there -- anything from 20 to 30Hz will be fine.
>>
>> Modified:
>>    projects/calloutng/sys/dev/syscons/syscons.c
>>    projects/calloutng/sys/dev/syscons/syscons.h
>>
>> Modified: projects/calloutng/sys/dev/syscons/syscons.c
>>
> ==============================================================================
>> --- projects/calloutng/sys/dev/syscons/syscons.c	Sat Dec 15 10:30:06 2012	
> (r244248)
>> +++ projects/calloutng/sys/dev/syscons/syscons.c	Sat Dec 15 10:44:16 2012	
> (r244249)
>> @@ -504,6 +504,8 @@ sc_attach_unit(int unit, int flags)
>>
>>       sc = sc_get_softc(unit, flags & SC_KERNEL_CONSOLE);
>>       sc->config = flags;
>> +    callout_init(&sc->ctimeout, FALSE);
>> +    callout_init(&sc->cblink, FALSE);
>
> Did you change the calling conventions for callout_init() in this branch?  In
> HEAD the second argument is a flags variable (albeit with only a single flag
> defined: CALLOUT_MPSAFE).  Thus, the common usage is to use 'callout_init(..,
> 0);' for callouts that need Giant and 'callout_init(..., CALLOUT_MPSAFE);' for
> those that do not need Giant.

No, I haven't. But man page still talks about "FALSE" value for mpsafe 
argument and that confused me. Fixed. Thanks.

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50CF8D3D.6030906>