00001 /* 00002 * The Versatile Governor 00003 * 00004 *vsgov-locator: deals with detecting and setting throttle info. 00005 00006 Copyright (C) 2004 Joseph Pingenot 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2.1 of the License, or (at your option) any later 00012 version. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with this library; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 00023 */ 00024 00025 00026 /*This decides what throttling to use. 00027 *ARGS: 00028 * cpulist: list of cpus, from libacpi 00029 * load: throttling load 00030 *RETURNS: 00031 * T-state to use. 00032 */ 00033 unsigned int locate_throttling(struct libproc_acpi_cputhrottling* throttle, float tload); 00034