balance.h 439 B

12345678910111213141516171819
  1. #ifndef _balance_h
  2. #define _balance_h
  3. #include "lub/list.h"
  4. #include "irq.h"
  5. #include "cpu.h"
  6. typedef enum {
  7. BIRQ_CHOOSE_MAX,
  8. BIRQ_CHOOSE_MIN,
  9. BIRQ_CHOOSE_RND
  10. } birq_choose_strategy_e;
  11. int balance(lub_list_t *cpus, lub_list_t *balance_irqs, float threshold);
  12. int apply_affinity(lub_list_t *balance_irqs);
  13. int choose_irqs_to_move(lub_list_t *cpus, lub_list_t *balance_irqs,
  14. float threshold, birq_choose_strategy_e strategy);
  15. #endif