From owner-svn-src-all@FreeBSD.ORG Wed May 4 14:46:21 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A7CC106564A; Wed, 4 May 2011 14:46:21 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 08FF18FC0A; Wed, 4 May 2011 14:46:20 +0000 (UTC) Received: by vxc34 with SMTP id 34so1686069vxc.13 for ; Wed, 04 May 2011 07:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=C3S3TrDl6wOb1ru2avZOdfNks4/pX8ZQFcOWzlUhiNU=; b=M0CComaMRkE6/UXjzWfXLVKHd5h2/6Xoc9pziyZYOfUeu5z5Wj+Qk/UrCgo4wW/7Cr Yfm80wZyMnR7IGVTRMFNGw87/FW/GWlAwL5OdjthmeZDW9m2efMmxKd9vgCVNTHerAEU 7A8lTTpZTHYl1m1GX2pkD3XrzxBb9tDTK9RRM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=SLUJ04r1S1bXtSA2Ci8qI0oxDZ1PtbnzM0WSjI3Jkfl4nOdAJzcQ5oq1P7MXIYmWds nELjA+gJJJU83PxEZyUK/bplNie94dmZOafm+p25v8i1tjo7oyLzTGAlB9AH09ew4HYe PNSpS2tv/wd0TxKRKraK9JcE+y16MrSyI/s5I= MIME-Version: 1.0 Received: by 10.52.93.115 with SMTP id ct19mr1431107vdb.238.1304520379835; Wed, 04 May 2011 07:46:19 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.220.201.3 with HTTP; Wed, 4 May 2011 07:46:19 -0700 (PDT) In-Reply-To: <201105041437.p44Eb2pP054777@svn.freebsd.org> References: <201105041437.p44Eb2pP054777@svn.freebsd.org> Date: Wed, 4 May 2011 10:46:19 -0400 X-Google-Sender-Auth: 3ob4ZccNwQDbgn2oyZjiU1GNZxE Message-ID: From: Attilio Rao To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: svn commit: r221441 - head/sys/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 14:46:21 -0000 Argh, sorry, I committed this file by accident, reverting it. Attilio 2011/5/4 Attilio Rao : > 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 > + * 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 > + > +#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