linux/drivers/cpufreq/cpufreq_performance.c
<<
> < href="../linux+v31.32/drivers/cpufreq/cpufreq_performance.c"> > o/spa> ospa> class="lxr_search"> >="+search" method="post" onsubmit="return do_search(this);"> > > > Search ospa> class="lxr_prefs" < onclick="return ajax_prefs();"> > o/spa> > < < ="ajax+*" method="post" onsubmit="return false;"> oinput typ="vhidden" nam="vajax_lookup" id"vajax_lookup" alue="v"> > < <
<
< < < odiv id"vfile_contents"
< <1o/a>ospa> class="comment">/*o/spa>
 < <2o/a>ospa> class="comment"> *  linux/drivers/cpufreq/cpufreq_performance.co/spa>
 < <3o/a>ospa> class="comment"> *o/spa>
 < <4o/a>ospa> class="comment"> *  Copyright (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>o/spa>
 < <5o/a>ospa> class="comment"> *o/spa>
 < <6o/a>ospa> class="comment"> *o/spa>
 < <7o/a>ospa> class="comment"> * This program is free software; you ca> redistribute it and/or modifyo/spa>
 < <8o/a>ospa> class="comment"> * it under the terms of the GNU General Public License verson v2 aso/spa>
 < <9o/a>ospa> class="comment"> * published by the Free Software Foundaion>.o/spa>
 < 0ospa> class="comment"> *o/spa>
 < 11o/a>ospa> class="comment"> */o/spa>
 < 12o/a> < 13o/a>#include <linux/kernel.ho/a>> < 14o/a>#include <linux/module.ho/a>> < 15o/a>#include <linux/cpufreq.ho/a>> < 16o/a>#include <linux/init.ho/a>> < 17o/a> < 18o/a> < 19o/a>static intcpufreq_governor_performanceo/a>(structcpufreq_policyo/a> *oa href="+code=policy" class="sref">policyo/a>, < 2                                        unsigned intevent/oa>) < 21o/a>{ < 22/oa>        switch (oa href="+code=event" class="sref">event/oa>) { < 23/oa>        case oa href="+code=CPUFREQ_GOV_START" class="sref">CPUFREQ_GOV_START/oa>: < 24/oa>        case oa href="+code=CPUFREQ_GOV_LIMITS" class="sref">CPUFREQ_GOV_LIMITS/oa>: < 25/oa>                oa href="+code=pr_debug" class="sref">pr_debugo/a>(ospa> class="string">"setting to %u kHz because of event %u\n"o/spa>
, < 26/oa>                                                oa href="+code=policy" class="sref">policyo/a>->oa href="+code=max" class="sref">maxo/a>,event/oa>); < 27/oa>                oa href="+code=__cpufreq_driver_target" class="sref">__cpufreq_driver_targeto/a>(oa href="+code=policy" class="sref">policyo/a>, oa href="+code=policy" class="sref">policyo/a>->oa href="+code=max" class="sref">maxo/a>, < 28/oa>                                                oa href="+code=CPUFREQ_RELATION_H" class="sref">CPUFREQ_RELATION_H/oa>); < 29/oa>                break; < 3        default: < 31/oa>                break; < 32/oa>        } < 33/oa>        return 0; < 34/oa>} < 35o/a> < 36o/a>#ifdef oa href="+code=CONFIG_CPU_FREQ_GOV_PERFORMANCE_MODULE" class="sref">CONFIG_CPU_FREQ_GOV_PERFORMANCE_MODULEo/a> < 37o/a>static < 38/oa>#endif < 39o/a>structcpufreq_governor/oa> oa href="+code=cpufreq_gov_performance" class="sref">cpufreq_gov_performanceo/a> = { < 4        .oa href="+code=nam=" class="sref">nam=/oa>           = ospa> class="string">"performance"o/spa>
, < 41/oa>        .oa href="+code=governor" class="sref">governor/oa>       = oa href="+code=cpufreq_governor_performance" class="sref">cpufreq_governor_performanceo/a>, < 42/oa>        .oa href="+code=owner" class="sref">owner/oa>          = oa href="+code=THIS_MODULE" class="sref">THIS_MODULEo/a>, < 43/oa>}; < 44o/a> < 45o/a> < 46o/a>static int__init/oa> oa href="+code=cpufreq_gov_performance_init" class="sref">cpufreq_gov_performance_inito/a>(void) < 47o/a>{ < 48/oa>        return oa href="+code=cpufreq_register_governor" class="sref">cpufreq_register_governoro/a>(&oa href="+code=cpufreq_gov_performance" class="sref">cpufreq_gov_performanceo/a>); < 49/oa>} < 50o/a> < 51o/a> < 52o/a>static void__exit/oa> oa href="+code=cpufreq_gov_performance_exit" class="sref">cpufreq_gov_performance_exito/a>(void) < 53o/a>{ < 54/oa>        oa href="+code=cpufreq_unregister_governor" class="sref">cpufreq_unregister_governoro/a>(&oa href="+code=cpufreq_gov_performance" class="sref">cpufreq_gov_performanceo/a>); < 55/oa>} < 56o/a> < 57o/a> < 58o/a>oa href="+code=MODULE_AUTHOR" class="sref">MODULE_AUTHORo/a>(ospa> class="string">"Dominik Brodowski <linux@brodo.de>"o/spa>
); < 59o/a>oa href="+code=MODULE_DESCRIPTION" class="sref">MODULE_DESCRIPTIONo/a>(ospa> class="string">"CPUfreq policy governor 'performance'"o/spa>
); < 60o/a>oa href="+code=MODULE_LICENSE" class="sref">MODULE_LICENSEo/a>(ospa> class="string">"GPL"o/spa>
); < 61o/a> < 62o/a>oa href="+code=fs_initcall" class="sref">fs_initcallo/a>(oa href="+code=cpufreq_gov_performance_init" class="sref">cpufreq_gov_performance_inito/a>); < 63o/a>oa href="+code=module_exit" class="sref">module_exito/a>(oa href="+code=cpufreq_gov_performance_exit" class="sref">cpufreq_gov_performance_exito/a>); < 64o/a>o/pre>
The original LXR software by the LXR communityo/a>, this experimental verson vby lxr@linux.noo/a>.
o/div
 odiv class="subfooter">
lxr.linux.no kindly hostedvby Redpill Linpro ASo/a>, provider of Linux consulting and operaion>s services since 1995.
o/div
 
o/body
 o/html