Re: [Linux-ia64] runtime platform detection in GENERIC kernels

From: Martin Hicks <>
Date: 2003-05-15 01:47:42
On Wed, May 14, 2003 at 09:32:53AM -0600, Alex Williamson wrote:
>    Why not just make a runtime strcmp to platform_name?  Then
> you could make a generic is_platform("sn2") type function/macro
> that everyone could use and you'd get rid of that nasty init
> function.  If you realy need to make such a check in a perfmance
> path, it should probably be a machvec.  Thanks,

That sounds fine to me.  I was certainly aiming to keep this
in non-performance critical regions.  I'd actually like to
restrict its use to init decisions, such as which serial
console driver to use.


Wild Open Source Inc.        

Received on Wed May 14 08:47:46 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:14 EST