Re: [RFC] Common mechanism to identify Si revision

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sep 7, 2009, at 8:02 AM, Premi, Sanjeev wrote:



I think it is a great step in the right direction. My only concern is
that the usage conventions are confusing:

OMAP3_HAS_FEATURE(neon, NEON)

[sp] This is only used to declare a function that would translate to:
    unsigned int omap3_has_neon(void)
    {
	     return (omap_features & OMAP_HAS_NEON);
    }
    EXPORT_SYMBOL(omap3_has_neon);

    A user would always do something like:
    if (omap_has_neon())
        do_neon_specific_stuff();


Ok, all is well then. :)


-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux