/* dca_common_get_tag - return the dca tag (serves both new and old api) @dev - the device that wants dca service @cpu - the cpuid as returned by get_cpu()  */
u8 dca_common_get_tag(struct device *dev, int cpu)
/* dca_common_get_tag - return the dca tag (serves both new and old api) @dev - the device that wants dca service @cpu - the cpuid as returned by get_cpu()  */
u8 dca_common_get_tag(struct device *dev, int cpu)
{
	struct dca_provider *dca;
	u8 tag;
	unsigned long flags;
	spin_lock_irqsave(&dca_lock, flags);
	dca = dca_find_provider_by_dev(dev);
	if (!dca) {
		spin_unlock_irqrestore(&dca_lock, flags);
		return -ENODEV;
	}
	tag = dca->ops->get_tag(dca, dev, cpu);
	spin_unlock_irqrestore(&dca_lock, flags);
	return tag;
}