Cc: Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>, Jesse Barnes <jbarnes@...>, <linux-kernel@...>
Btw, make this one "static" - I don't think anybody outside of this file
should ever use it anyway.
And this:
is probably worthy of a comment.
And finally:
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
--