| 1 |
/* |
| 2 |
* PRs 6923 and 6967: |
| 3 |
* #include <linux/smp.h> should be sufficient, but there are some |
| 4 |
* problems with #include hygiene in this area: |
| 5 |
* i386, recent kernels: linux/smp.h needs linux/irqflags.h. |
| 6 |
* s390, RHEL5.2: linux/irqflags.h needs asm/system.h (and |
| 7 |
* linux/kernel.h, which asm/system.h includes). |
| 8 |
* |
| 9 |
* #include <linux/kernel.h> is probably redundant here, since |
| 10 |
* everybody's <asm/system.h> seems to include it, but nobody |
| 11 |
* seems to #include <asm/system.h> without <linux/kernel.h> first. |
| 12 |
* |
| 13 |
* <asm/system.h> includes <linux/irqflags.h> on most architectures, |
| 14 |
* so we don't explicitly include it here. The exception is ia64, |
| 15 |
* but <linux/smp.h> alone seemed to be sufficient for ia64 here. |
| 16 |
*/ |
| 17 |
#include <linux/kernel.h> |
| 18 |
#include <asm/system.h> |
| 19 |
#include <linux/smp.h> |
| 20 |
|
| 21 |
static void no_op(void *arg) |
| 22 |
{ |
| 23 |
} |
| 24 |
|
| 25 |
void ____autoconf_func(void) |
| 26 |
{ |
| 27 |
/* Older on_each_cpu() calls had a "retry" parameter */ |
| 28 |
(void)on_each_cpu(no_op, NULL, 0, 0); |
| 29 |
} |