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

Martin Hicks
2003-05-14T15:47:42Z

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

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.

mh

--
Wild Open Source Inc. mort@wildopensource.com

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]