login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
16
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Bernhard Walle <bwalle@...>
To: Dave Hansen <haveblue@...>
Cc: <linux-kernel@...>, <kexec@...>, <akpm@...>, <ak@...>
Subject:
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
Date: Tuesday, October 16, 2007 - 2:44 pm
Hi, * Dave Hansen <haveblue@us.ibm.com> [2007-10-16 20:08]:
quoted text
> On Tue, 2007-10-16 at 18:28 +0200, Bernhard Walle wrote: > > > > @@ -736,7 +736,7 @@ static int __init smp_scan_config (unsig > > smp_found_config = 1; > > printk(KERN_INFO "found SMP MP-table at %08lx\n", > > virt_to_phys(mpf)); > > - reserve_bootmem(virt_to_phys(mpf), PAGE_SIZE); > > + reserve_bootmem(virt_to_phys(mpf), PAGE_SIZE, 0); > > if (mpf->mpf_physptr) { > > /* > > Could you give all of these 0's a name? I really hate seeing random > magic numbers in these things. 0 completely kills the ability of > someone to read the code and figure out what it is trying to do without > going and looking at reserve_bootmem().
Of course I can replace that zeroes with something like BOOTMEM_DEFAULT.
quoted text
> Or, alternatively, do something like this: > > -extern void reserve_bootmem(unsigned long addr, unsigned long size);
Andi was against more bootmem functions. ;) Thanks, Bernhard -
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] Introduce BOOTMEM_EXCLUSIVE
, Bernhard Walle
, (Tue Oct 16, 12:28 pm)
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
, Vivek Goyal
, (Wed Oct 17, 7:05 am)
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
, Bernhard Walle
, (Thu Oct 18, 7:15 am)
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
, Bernhard Walle
, (Wed Oct 17, 7:36 am)
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
, Vivek Goyal
, (Thu Oct 18, 12:32 am)
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
, Dave Hansen
, (Tue Oct 16, 2:08 pm)
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
, Bernhard Walle
, (Tue Oct 16, 2:44 pm)
Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE
, Dave Hansen
, (Tue Oct 16, 2:58 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Amit K. Arora
[RFC] Heads up on sys_fallocate()
Chuck Ebbert
Why do so many machines need "noapic"?
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
436 guests
online.
Syndicate