175844b91b
git-svn-id: https://irqbalance.googlecode.com/svn/trunk@20 46b42954-3823-0410-bd82-eb80b452c9b5
51 lines
1.2 KiB
C
51 lines
1.2 KiB
C
#ifndef __INCLUDE_GUARD_IRQBALANCE_H_
|
|
#define __INCLUDE_GUARD_IRQBALANCE_H_
|
|
|
|
|
|
#include "constants.h"
|
|
|
|
#include "cpumask.h"
|
|
|
|
#include <stdint.h>
|
|
#include <glib.h>
|
|
|
|
#include "types.h"
|
|
|
|
struct interrupt;
|
|
|
|
extern int package_count;
|
|
extern int cache_domain_count;
|
|
extern int core_count;
|
|
extern char *classes[];
|
|
extern int map_class_to_level[7];
|
|
extern int class_counts[7];
|
|
extern int debug_mode;
|
|
extern int power_mode;
|
|
extern int need_cpu_rescan;
|
|
extern int one_shot_mode;
|
|
extern GList *interrupts;
|
|
|
|
|
|
extern void parse_cpu_tree(void);
|
|
extern void clear_work_stats(void);
|
|
extern void parse_proc_interrupts(void);
|
|
extern void set_interrupt_count(int number, uint64_t count);
|
|
extern void add_interrupt_count(int number, uint64_t count, int type);
|
|
extern int find_class(struct interrupt *irq, char *string);
|
|
extern void add_interrupt_numa(int number, cpumask_t mask, int type);
|
|
|
|
void calculate_workload(void);
|
|
void reset_counts(void);
|
|
void dump_workloads(void);
|
|
void sort_irq_list(void);
|
|
void calculate_placement(void);
|
|
void dump_tree(void);
|
|
|
|
void activate_mapping(void);
|
|
void account_for_nic_stats(void);
|
|
void check_power_mode(void);
|
|
void clear_cpu_tree(void);
|
|
void pci_numa_scan(void);
|
|
|
|
#endif
|