File: autoconf-oneachcpu-retry.c

package info (click to toggle)
systemtap 5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 47,964 kB
  • sloc: cpp: 80,838; ansic: 54,757; xml: 49,725; exp: 43,665; sh: 11,527; python: 5,003; perl: 2,252; tcl: 1,312; makefile: 1,006; javascript: 149; lisp: 105; awk: 101; asm: 91; java: 70; sed: 16
file content (29 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * PRs 6923 and 6967:
 * #include <linux/smp.h> should be sufficient, but there are some
 * problems with #include hygiene in this area:
 * i386, recent kernels: linux/smp.h needs linux/irqflags.h.
 * s390, RHEL5.2: linux/irqflags.h needs asm/system.h (and
 * linux/kernel.h, which asm/system.h includes).
 *
 * #include <linux/kernel.h> is probably redundant here, since
 * everybody's <asm/system.h> seems to include it, but nobody
 * seems to #include <asm/system.h> without <linux/kernel.h> first.
 *
 * <asm/system.h> includes <linux/irqflags.h> on most architectures,
 * so we don't explicitly include it here.  The exception is ia64,
 * but <linux/smp.h> alone seemed to be sufficient for ia64 here.
 */
#include <linux/kernel.h>
#include <asm/system.h>
#include <linux/smp.h>

static void no_op(void *arg)
{
}

void ____autoconf_func(void)
{
    /* Older on_each_cpu() calls had a "retry" parameter */
    (void)on_each_cpu(no_op, NULL, 0, 0);
}