1N/A * Copyright 2009, Intel Corporation 1N/A * Copyright 2009, Sun Microsystems, Inc 1N/A * This file is part of PowerTOP 1N/A * This program file is free software; you can redistribute it and/or modify it 1N/A * under the terms of the GNU General Public License as published by the 1N/A * Free Software Foundation; version 2 of the License. 1N/A * This program is distributed in the hope that it will be useful, but WITHOUT 1N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1N/A * You should have received a copy of the GNU General Public License 1N/A * along with this program in a file named COPYING; if not, write to the 1N/A * Free Software Foundation, Inc., 1N/A * 51 Franklin Street, Fifth Floor, 1N/A * Boston, MA 02110-1301 USA 1N/A * Arjan van de Ven <arjan@linux.intel.com> 1N/A * Eric C Saxe <eric.saxe@sun.com> 1N/A * Aubrey Li <aubrey.li@intel.com> 1N/A * For the avoidance of doubt, except that if any license choice other 1N/A * than GPL or LGPL is available it will apply instead, Sun elects to 1N/A * use only the General Public License version 2 (GPLv2) at this time 1N/A * for any software where a choice of GPL license versions is made 1N/A * available with the language indicating that GPLv2 or any later 1N/A * version may be used, or where a choice of which version of the GPL 1N/A * is applied is otherwise unspecified. 1N/A * Default number of intervals we display a suggestion before moving 1N/A * Global pointer to the current suggestion. 1N/A * Head of the list of suggestions. 1N/A * Add a new suggestion. Only one suggestion per text allowed. 1N/A * Text is a required field for suggestions 1N/A * Creating first element 1N/A * Create a new element 1N/A * Ordering placed the new element at the end 1N/A * Ordering placed the new element at the start 1N/A * Ordering placed the new element somewhere in 1N/A * Removes a suggestion, returning 0 if not found and 1 if so. 1N/A /* Removing the first element */ 1N/A /* Removing the only element */ 1N/A /* Removing the last element */ 1N/A /* Removing an intermediate element */ 1N/A * If this suggestions is currently being suggested, 1N/A * remove it and update the screen. 1N/A * Chose a suggestion to display. The list of suggestions is ordered by weight, 1N/A * so we only worry about fariness here. Each suggestion, starting with the 1N/A * first (the 'heaviest') is displayed during PT_SUGG_DEF_SLICE intervals. 1N/A * Don't need to re-suggest the current suggestion. 1N/A * Remove the current suggestion from screen. 1N/A * All suggestions have run out of slice quotas, so we restart. 1N/A " for reducing system power consumption",
40,
NULL,
NULL,