Re: purpose of variables loops_per_jiffy and boot_cpu_data

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

 



On 23 Jan 2005 13:10:21 -0000, Pankaj G <godepankaj@xxxxxxxxxxxxxx> wrote:
> 
> 
>   
> hi all,
> 
> Can anyone give me information about these things:
> 
> Two variable are there, about which, i want to know:
> 
> 1. loops_per_jiffy  present in linux/delay.h

This is used for making delays in Kernel. There are two methods in
Linux kernel(i386)
 a) Use the Time Stamp counter
 b) Just use a simle loop which decrements the counter.
     loops_per_jiffy holds that counter value.

> 2. boot_cpu_data present in asm/processor.h

It is simply a structure that holds CPU specfic information.
struct cpuinfo_x86 (in i386)

> If suppose i run a for loop from &loops_per_jiffy to &boot_cpu_data , 
> what all things will i get.

it is used internally by __udelay();
se i386/lib/delay.c

regards 
Manish Regmi

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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