Neil Horman e2f6588bd4 Add powersave settings
Add an optional heuristic to allow cpus to not service interrupts during periods
of low activity, to help power conservation. If more than power_thresh cpus are
more then a standard deviation below the average load, and no cpus are
overloaded by more than a standard deviation and have more than one irq on them,
then we stop balancing to a single cpu.  If at any time we have a cpu go over a
standard deviation of load, we re-enable all the cpus for balancing
2011-10-10 15:59:15 -04:00

35 lines
977 B

* Copyright (C) 2006, Intel Corporation
* This file is part of irqbalance
* This program file is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; version 2 of the License.
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
* You should have received a copy of the GNU General Public License
* along with this program in a file named COPYING; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include "irqbalance.h"
void check_power_mode(void)