Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2011 10:46:19 -0400
From:      Attilio Rao <attilio@freebsd.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r221441 - head/sys/sys
Message-ID:  <BANLkTinDnf%2BeP4AZzZpJnio0h2vvj%2B01yA@mail.gmail.com>
In-Reply-To: <201105041437.p44Eb2pP054777@svn.freebsd.org>
References:  <201105041437.p44Eb2pP054777@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Argh, sorry, I committed this file by accident, reverting it.

Attilio

2011/5/4 Attilio Rao <attilio@freebsd.org>:
> Author: attilio
> Date: Wed May =C2=A04 14:37:01 2011
> New Revision: 221441
> URL: http://svn.freebsd.org/changeset/base/221441
>
> Log:
> =C2=A0Remove the previously added comment.
> =C2=A0Probabilly me is the only one who didn't know userland and kernelan=
d sizes
> =C2=A0were mismatching.
>
> Added:
> =C2=A0head/sys/sys/_cpuset.h =C2=A0 (contents, props changed)
>
> Added: head/sys/sys/_cpuset.h
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- /dev/null =C2=A0 00:00:00 1970 =C2=A0 (empty, because file is newly a=
dded)
> +++ head/sys/sys/_cpuset.h =C2=A0 =C2=A0 =C2=A0Wed May =C2=A04 14:37:01 2=
011 =C2=A0 =C2=A0 =C2=A0 =C2=A0(r221441)
> @@ -0,0 +1,54 @@
> +/*-
> + * Copyright (c) 2008, Jeffrey Roberson <jeff@freebsd.org>
> + * All rights reserved.
> + *
> + * Copyright (c) 2008 Nokia Corporation
> + * All rights reserved.
> + *
> + * Redistribution and use in source and binary forms, with or without
> + * modification, are permitted provided that the following conditions
> + * are met:
> + * 1. Redistributions of source code must retain the above copyright
> + * =C2=A0 =C2=A0notice unmodified, this list of conditions, and the foll=
owing
> + * =C2=A0 =C2=A0disclaimer.
> + * 2. Redistributions in binary form must reproduce the above copyright
> + * =C2=A0 =C2=A0notice, this list of conditions and the following discla=
imer in the
> + * =C2=A0 =C2=A0documentation and/or other materials provided with the d=
istribution.
> + *
> + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
> + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRAN=
TIES
> + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIME=
D.
> + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
> + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, =
BUT
> + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF =
USE,
> + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
> + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
> + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE=
 OF
> + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
> + *
> + * $FreeBSD$
> + */
> +
> +#ifndef _SYS__CPUSET_H_
> +#define =C2=A0 =C2=A0 =C2=A0 =C2=A0_SYS__CPUSET_H_
> +
> +#include <sys/param.h>
> +
> +#ifdef _KERNEL
> +#define =C2=A0 =C2=A0 =C2=A0 =C2=A0CPU_SETSIZE =C2=A0 =C2=A0 MAXCPU
> +#endif
> +
> +#define =C2=A0 =C2=A0 =C2=A0 =C2=A0CPU_MAXSIZE =C2=A0 =C2=A0 (4 * MAXCPU=
)
> +
> +#ifndef =C2=A0 =C2=A0 =C2=A0 =C2=A0CPU_SETSIZE
> +#define =C2=A0 =C2=A0 =C2=A0 =C2=A0CPU_SETSIZE =C2=A0 =C2=A0 CPU_MAXSIZE
> +#endif
> +
> +#define =C2=A0 =C2=A0 =C2=A0 =C2=A0_NCPUBITS =C2=A0 =C2=A0 =C2=A0 (sizeo=
f(long) * NBBY) =C2=A0 /* bits per mask */
> +#define =C2=A0 =C2=A0 =C2=A0 =C2=A0_NCPUWORDS =C2=A0 =C2=A0 =C2=A0howman=
y(CPU_SETSIZE, _NCPUBITS)
> +
> +typedef =C2=A0 =C2=A0 =C2=A0 =C2=A0struct _cpuset {
> + =C2=A0 =C2=A0 =C2=A0 long =C2=A0 =C2=A0__bits[howmany(CPU_SETSIZE, _NCP=
UBITS)];
> +} cpuset_t;
> +
> +#endif /* !_SYS__CPUSET_H_ */
>



--=20
Peace can only be achieved by understanding - A. Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinDnf%2BeP4AZzZpJnio0h2vvj%2B01yA>