linux/drivers/cpufreq/mperf.c
<<
>>
Prefs
   1#include <linux/kernel.h>
   2#include <linux/smp.h>
   3#include <linux/module.h>
   4#include <linux/init.h>
   5#include <linux/cpufreq.h>
   6#include <linux/slab.h>
   7
   8#include "mperf.h"
   9
  10static DEFINE_PER_CPU(struct aperfmperf, acfreq_old_perf);
  11
  12/* Called via smp_call_function_single(), on the target CPU */
  13static void read_measured_perf_ctrs(void *_cur)
  14{
  15        struct aperfmperf *am = _cur;
  16
  17        get_aperfmperf(am);
  18}
  19
  20/*
  21 * Return the measured active (C0) frequency on this CPU since last call
  22 * to this function.
  23 * Input: cpu number
  24 * Return: Average CPU frequency in terms of max frequency (zero on error)
  25 *
 * Return: Average CPU fe2IA32_Mt drivers/cpufreq/mperf.c#L2ef="driv;6" class="line" 2ame="L17">  17     2   * Return: Average of.c au;6"iod (zetime, whe c termn>
reqC0 ef="e"drivers/cpufreq/mperf.c#L23" id="L23" class="line" 2ame="L18">  18}
 * Input: cpu number  19
 * Input: cpu number  20/*
  21 * Return the measurno(C0)narg should be Retoci="ed with absolu"e /formy (zeve fe2MSRs"drivers/cpufreq/mperf.c#L23" id="L23" clas3="line" 3ame="L22">  22 * to this function"drivers/cpufreq/mperf.c#L13" id="L13" clas3"line" naame="L3">   3#includclass3"communsig20d inaperfmperf" class13" id=_>((void *<);
((void *);
policy);
  24);
  25aperfmperf *p>aperfmperf *<="+code=s/cpufreq/mperf.c#L3" id="L3" class="="line" 3ame="L17">  17     3    18}
  19
  20_single(), on the targetad_measured_per_single(), on the targetde=am" class="sref">13");
read_measured_perf_ctrs(void *p>aperfmperf *<="+code=, 1)s/cpufreq/mperf.c#L14" id="L14" clas4="line" 4ame="L21">  21  22   3#inclu4class43ef="+code=get_aperfmperf" cf="ioad_measured_perf="ioode==_cur" class="srefgleca href="+co_f="ioad_measured_pergleca href="+co_f="iode=am&" class="sref">p>a_13");
a_13"de=am" class="sref">alass="sref">acfreq_old_perf);
);
p>aperfmperf *<="+code=rs/cpufreq/mperf.c#L18" id="L18" clas4"line" naame="L4">   4#includclass44ef="+code=get_aperfmperf" cp>a_13");
a_13"de=am" class="sref">alass="sref">acfreq_old_perf);
);
  25policy);


et_aperfmperf" cAt   17     4    18}
  19
  2013" id=_>((void *<);
((void *  21);
 * to thcodarg"driversGPLivers/criversrs/cpufreq/mperf.c#L18" id="L18" clas5="line" 5ame="L22">  22
    
 

content">

&ooter">
The original LXR software by ve (cpufreq/mhttp://sourceforge.net/projects/lxr">LXR is funityode=,span>
ex;6"ifuncal f.c#1"
	by cpufreq/mmailto:lxr@gt;
<.no">lxr@gt;
<.noode=.
content>

sub&ooter">
lxr.gt;
<.no kindly hos"ed by cpufreq/mhttp://www.(vopill-gt;pro.no">Rvopill Lt;pro ASode=,sprovider (zeLt;
< isn/bodynt>/html