login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
8
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Bert Wesarg <bert.wesarg@...>
To: Mike Travis <travis@...>
Cc: Ingo Molnar <mingo@...>, Paul Jackson <pj@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>, <linux-kernel@...>
Subject:
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
Date: Tuesday, April 8, 2008 - 3:40 pm
On Tue, Apr 8, 2008 at 8:43 PM, Mike Travis <travis@sgi.com> wrote:
quoted text
> --- linux-2.6.x86.sched.orig/drivers/base/node.c > +++ linux-2.6.x86.sched/drivers/base/node.c > @@ -19,22 +19,34 @@ static struct sysdev_class node_class = > }; > > > -static ssize_t node_read_cpumap(struct sys_device * dev, char * buf) > +static ssize_t node_read_cpumap(struct sys_device *dev, int type, char *buf) > { > struct node *node_dev = to_node(dev); > node_to_cpumask_ptr(mask, node_dev->sysdev.id); > int len; > > - /* 2004/06/03: buf currently PAGE_SIZE, need > 1 char per 4 bits. */ > - BUILD_BUG_ON(MAX_NUMNODES/4 > PAGE_SIZE/2); > + /* 2008/04/07: buf currently PAGE_SIZE, need 9 chars per 32 bits. */ > + BUILD_BUG_ON((NR_CPUS/32 * 9) > (PAGE_SIZE-1));
Is this right, that you switch from MAX_NUMNODES to NR_CPUS? Regards Bert --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 2/3] cpumask: use new cpus_scnprintf function v3
, Mike Travis
, (Tue Apr 8, 2:43 pm)
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
, Paul Jackson
, (Thu Apr 10, 10:05 am)
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
, Paul Jackson
, (Thu Apr 10, 8:13 am)
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
, Paul Jackson
, (Wed Apr 9, 8:32 pm)
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
, Bert Wesarg
, (Tue Apr 8, 3:40 pm)
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
, Mike Travis
, (Tue Apr 8, 4:46 pm)
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
, Bert Wesarg
, (Wed Apr 9, 11:53 am)
Re: [PATCH 2/3] cpumask: use new cpus_scnprintf function v3
, Paul Jackson
, (Thu Apr 10, 8:49 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Andrew Morton
Re: 2.6.23-rc6-mm1
Luciano Rocha
usb hdd problems with 2.6.27.2
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Andrew Morton
Re: [BUG] New Kernel Bugs
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH take 2] pkt_sched: Protect gen estimators under est_lock.
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
546 guests
online.
Online users
strcmp
tweems66
Syndicate