Changeset b109ebb in mainline for src/mm/tlb.c


Ignore:
Timestamp:
2005-02-22T08:31:53Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4ffa9e0
Parents:
169587a
Message:

shootdown vs. shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mm/tlb.c

    r169587a rb109ebb  
    3535#ifdef __SMP__
    3636static spinlock_t tlblock;
    37 static volatile int tlb_shutdown_cnt;
     37static volatile int tlb_shootdown_cnt;
    3838
    3939void tlb_init(void)
    4040{
    4141        spinlock_initialize(&tlblock);
    42         tlb_shutdown_cnt = 0;
     42        tlb_shootdown_cnt = 0;
    4343}
    4444
    4545/* must be called with interrupts disabled */
    46 void tlb_shutdown_start(void)
     46void tlb_shootdown_start(void)
    4747{
    4848        spinlock_lock(&tlblock);
    49         tlb_shutdown_ipi_send();
     49        tlb_shootdown_ipi_send();
    5050       
    51         while (tlb_shutdown_cnt < config.cpu_active - 1)
     51        while (tlb_shootdown_cnt < config.cpu_active - 1)
    5252                ;
    5353               
    54         tlb_shutdown_cnt = 0;
     54        tlb_shootdown_cnt = 0;
    5555}
    5656
    57 void tlb_shutdown_finalize(void)
     57void tlb_shootdown_finalize(void)
    5858{
    5959        spinlock_unlock(&tlblock);
    6060}
    6161
    62 void tlb_shutdown_ipi_recv(void)
     62void tlb_shootdown_ipi_recv(void)
    6363{
    64         atomic_inc((int *) &tlb_shutdown_cnt);
     64        atomic_inc((int *) &tlb_shootdown_cnt);
    6565        spinlock_lock(&tlblock);
    6666        spinlock_unlock(&tlblock);
Note: See TracChangeset for help on using the changeset viewer.