https://github.com/torvalds/linux
Revision ec05b297f91a443aa26b74059b573bfad49c9ebb authored by Adrian Bunk on 30 July 2007, 06:24:27 UTC, committed by Jens Axboe on 11 August 2007, 20:34:47 UTC
This patch removes the no longer used file_send_actor().

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent ac07860
Raw File
Tip revision: ec05b297f91a443aa26b74059b573bfad49c9ebb authored by Adrian Bunk on 30 July 2007, 06:24:27 UTC
[PATCH] remove mm/filemap.c:file_send_actor()
Tip revision: ec05b29
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