Re: [PATCH] x86: split e820 reserved entries record to late v3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yinghai Lu <yhlu.kernel@...>
Cc: Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>, Jesse Barnes <jbarnes@...>, <linux-kernel@...>
Date: Thursday, August 28, 2008 - 8:53 pm

On Thu, 28 Aug 2008, Yinghai Lu wrote:

Btw, make this one "static" - I don't think anybody outside of this file
should ever use it anyway.

And this:

> + if (e820.map[i].type != E820_RESERVED || res->start < (1ULL<<20))

is probably worthy of a comment.

And finally:

> +void __init e820_reserve_resources_late(void)

instead of duplicating the conditional and always having to worry about it
matching, how about just making it

if (!res->parent)
insert_resource(&iomem_resource, res);

which basically says that "if it's not already inserted, try to re-insert
it now".

Linus
--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] x86: split e820 reserved entries record to late v3, Linus Torvalds, (Thu Aug 28, 8:53 pm)