Re: Use of __pa() with CONFIG_NONLINEAR

From: Dave Hansen
Date: Wed Jul 28 2004 - 15:26:50 EST


On Wed, 2004-07-28 at 13:15, Martin J. Bligh wrote:
> However ... what happens to functions calling __pa that are called from
> boot time and run time code?

I've actually only run into one of those so far that I know of, and that
was on ppc64 (i386 had none that I found). In that one case, I used an
if(unlikely()) to optimize for the run-time one. There might be more,
but I think they're rare enough to just code it with an if() in each
case.

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/