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

From: Jes Sorensen <jes_at_wildopensource.com>
Date: 2003-05-15 06:49:18
>>>>> "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
Received on Wed May 14 13:49:26 2003

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