Re: SAL version checking

From: Jesse Barnes <jbarnes_at_sgi.com>
Date: 2004-02-24 08:09:20
On Mon, Feb 23, 2004 at 09:01:05PM +0000, Matthew Wilcox wrote:
> +int sal_check_version(int major, int minor)
> +{
> +       if (major < sal_rev_major)
> +               return 1;
> +       if (major > sal_rev_major)
> +               return 0;
> +       return (sal_rev_minor >= minor);
>  }
> 
> 
> Anyone want to propose a different solution?

It looks reasonable to me, though I thought we were the only ones that
cared about PROM revisions ;).  If you go ahead and push this in, we
could use it in arch/ia64/sn/kernel/setup.c, where we check for
incompatibilties bad enough to cause us to bail out...

Jesse
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Feb 23 16:35:33 2004

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