https://github.com/torvalds/linux
Revision 6e1ab3ed825418320319f44af1b990c9c3f4c45b authored by Peter Mack on 22 April 2008, 11:25:11 UTC, committed by Greg Kroah-Hartman on 02 May 2008, 17:25:54 UTC
Add more usb device ids to the ftdi driver.

From: Peter Mack <Peter.Mack@scs-ptc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

1 parent e272252
Raw File
Tip revision: 6e1ab3ed825418320319f44af1b990c9c3f4c45b authored by Peter Mack on 22 April 2008, 11:25:11 UTC
USB: add more FTDI device ids
Tip revision: 6e1ab3e
cpumask.c
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/cpumask.h>
#include <linux/module.h>

int __first_cpu(const cpumask_t *srcp)
{
	return min_t(int, NR_CPUS, find_first_bit(srcp->bits, NR_CPUS));
}
EXPORT_SYMBOL(__first_cpu);

int __next_cpu(int n, const cpumask_t *srcp)
{
	return min_t(int, NR_CPUS, find_next_bit(srcp->bits, NR_CPUS, n+1));
}
EXPORT_SYMBOL(__next_cpu);

int __any_online_cpu(const cpumask_t *mask)
{
	int cpu;

	for_each_cpu_mask(cpu, *mask) {
		if (cpu_online(cpu))
			break;
	}
	return cpu;
}
EXPORT_SYMBOL(__any_online_cpu);
back to top