Browse Source

Add birq.h file

Serj Kalichev 10 years ago
parent
commit
230d577d74
3 changed files with 10 additions and 3 deletions
  1. 1 0
      Makefile.am
  2. 1 3
      birq.c
  3. 8 0
      birq.h

+ 1 - 0
Makefile.am

@@ -14,6 +14,7 @@ sbin_PROGRAMS = birq
 lib_LIBRARIES =
 
 noinst_HEADERS = \
+	birq.h \
 	irq.h \
 	nl.h \
 	cpumask.h \

+ 1 - 3
birq.c

@@ -28,6 +28,7 @@
 #include <linux/types.h>
 #include <linux/netlink.h>
 
+#include "birq.h"
 #include "lub/log.h"
 #include "lub/list.h"
 #include "irq.h"
@@ -36,9 +37,6 @@
 #include "statistics.h"
 #include "balance.h"
 
-#define BIRQ_PIDFILE "/var/run/birq.pid"
-#define BIRQ_INTERVAL 3 /* in seconds */
-
 #ifndef VERSION
 #define VERSION 1.0.0
 #endif

+ 8 - 0
birq.h

@@ -0,0 +1,8 @@
+#ifndef _birq_h
+#define _birq_h
+
+#define BIRQ_PIDFILE "/var/run/birq.pid"
+#define BIRQ_INTERVAL 3 /* in seconds */
+#define BIRQ_DEFAULT_THRESHOLD 95.00
+
+#endif