Changeset 9a5b556 in mainline for kernel/arch/ia64/src/drivers/it.c


Ignore:
Timestamp:
2006-09-12T13:03:55Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6eabb6e6
Parents:
7bb6b06
Message:

sparc64 work:

  • find a CPU node and read its clock_frequency attribute
  • implement asm_delay_loop()
  • set TICK_COMPARE register according to processor frequency
  • small improvements at random places

OpenFirmware work:

  • two new functions for walking the device tree

Generic boot loader work:

  • added basic string functions

Usual pile of indentation and formatting fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/drivers/it.c

    r7bb6b06 r9a5b556  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    7777        eoi_write(EOI);
    7878       
    79         m=itm_read();
     79        m = itm_read();
    8080       
    81         while(1)
    82         {
    83        
    84                 c=itc_read();
    85                 c+=IT_SERVICE_CLOCKS;
     81        while (1) {
     82                c = itc_read();
     83                c += IT_SERVICE_CLOCKS;
    8684
    87                 m+=IT_DELTA;
    88                 if(m-c<0)
    89                 {
     85                m += IT_DELTA;
     86                if (m-c<0)
    9087                        CPU->missed_clock_ticks++;
    91                 }
    92                 else break;
     88                else
     89                        break;
    9390        }
    9491       
     
    9693        srlz_d();                               /* propagate changes */
    9794       
    98        
    99        
    10095        clock();
    10196        poll_keyboard();
    10297}
    10398
    104  /** @}
     99/** @}
    105100 */
    106 
Note: See TracChangeset for help on using the changeset viewer.