Re: what does nr_iowait_cpu() do?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 14, 2014 at 10:10 AM, Mohammad Merajul Islam Molla
<meraj.enigma@xxxxxxxxx> wrote:
> Hello,
>
> I was looking into the code of cpuidle menu governor and it uses a
> function nr_iowait_cpu(int cpu).
> I could not find out what this function does.
>
> Can someone please explain what nr_iowait_cpu(int cpu) and variant
> nr_iowait() do?
>
> --

In all its glory:

unsigned long nr_iowait_cpu(int cpu)
{
    struct rq *this = cpu_rq(cpu);
    return atomic_read(&this->nr_iowait);
}


> Thanks,
> -Meraj
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



-- 
Andev

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux