/* * The Vilsack Governor * Copyright (C) 2004 Joseph Pingenot This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /*The step sizes to try.*/ #define FREQSTEP 100000 /*Files we need to talk to, and the pieces to make the full path*/ #define FREQFILEBASE "/sys/devices/system/cpu" #define DEFAULTCPU "cpu0" #define FREQSUBDIR "cpufreq" #define MAXFREQFILE "scaling_max_freq" #define MINFREQFILE "scaling_min_freq" #define SETSPEEDFILE "scaling_setspeed" #define CPUMAXFREQFILE "cpuinfo_max_freq" #define CPUMINFREQFILE "cpuinfo_min_freq" #define CPUGOVERNORFILE "scaling_governor" /*Default pid file*/ #define DEFPIDFILE "/var/run/vsgovernor.pid" /*Default sleep time*/ #define DEFSLEEPTIME 5000 /*Identifier for the syslog*/ #define SYSLOGIDENT "vsgovernor" #define SYSLOGOPTS LOG_PID #define SYSLOGFAC LOG_DAEMON /*Path to the socket we'll be listening in to*/ #define SOCKPATH "/var/run/vsgovernor.socket"