Ignore:
Timestamp:
2024-01-14T18:23:40Z (4 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
5663872, c7ceacf
Parents:
3b68542
Message:

Add CPU_LOCAL alongside CPU and segregate fields that are only used locally

This makes it more clear which fields can be used without synchronization
and which need more care.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/tick.c

    r3b68542 r4760793  
    117117        while (drift > CPU->arch.clock_frequency / HZ) {
    118118                drift -= CPU->arch.clock_frequency / HZ;
    119                 CPU->missed_clock_ticks++;
     119                CPU_LOCAL->missed_clock_ticks++;
    120120        }
    121121        CPU->arch.next_tick_cmpr = tick_counter_read() +
Note: See TracChangeset for help on using the changeset viewer.