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

Jes Sorensen
2003-05-14T20:49:18Z

>>>>> "Alex" = Alex Williamson <alex_williamson@hp.com> writes:

Alex> Why not just make a runtime strcmp to platform_name? Then
Alex> you could make a generic is_platform("sn2") type function/macro
Alex> that everyone could use and you'd get rid of that nasty init
Alex> function. If you realy need to make such a check in a perfmance
Alex> path, it should probably be a machvec. Thanks,

Hi Alex,

I think the main reason for this was to cache the strcmp result in an
integer to make it faster.

Cheers,
Jes