https://github.com/torvalds/linux
Revision ac50e950784cae1c26ad9e09ebd8f8c706131eb3 authored by Linus Torvalds on 17 November 2009, 17:42:35 UTC, committed by Linus Torvalds on 17 November 2009, 17:42:35 UTC
* 'for-linus' of git://oss.sgi.com/xfs/xfs:
  xfs: copy li_lsn before dropping AIL lock
  XFS bug in log recover with quota (bugzilla id 855)
2 parent s 5743695 + 6c06f07
Raw File
Tip revision: ac50e950784cae1c26ad9e09ebd8f8c706131eb3 authored by Linus Torvalds on 17 November 2009, 17:42:35 UTC
Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs
Tip revision: ac50e95
up.c
/*
 * Uniprocessor-only support functions.  The counterpart to kernel/smp.c
 */

#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/smp.h>

int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
				int wait)
{
	WARN_ON(cpu != 0);

	local_irq_disable();
	(func)(info);
	local_irq_enable();

	return 0;
}
EXPORT_SYMBOL(smp_call_function_single);
back to top