ACPI: simplify acpi_pci_irq_add_prt() API
[linux-2.6/linux-acpi-2.6.git] / include / linux / ratelimit.h
blob00044b856453f45bf886ddc3b237ac3744323ac3
1 #ifndef _LINUX_RATELIMIT_H
2 #define _LINUX_RATELIMIT_H
3 #include <linux/param.h>
5 #define DEFAULT_RATELIMIT_INTERVAL (5 * HZ)
6 #define DEFAULT_RATELIMIT_BURST 10
8 struct ratelimit_state {
9 int interval;
10 int burst;
11 int printed;
12 int missed;
13 unsigned long begin;
16 #define DEFINE_RATELIMIT_STATE(name, interval, burst) \
17 struct ratelimit_state name = {interval, burst,}
19 extern int __ratelimit(struct ratelimit_state *rs);
20 #endif