Ignore:
Timestamp:
Feb 18, 2016, 7:36:16 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
03b900d
Parents:
5b0d2c1
git-author:
Sebastian Huber <sebastian.huber@…> (02/18/16 07:36:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/04/16 12:36:10)
Message:

score: Distribute clock tick to all online CPUs

Update #2554.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/smp/smp-imps.c

    r5b0d2c1 r90d8567  
    745745}
    746746
     747/* FIXME: There should be a header file for this */
     748void Clock_isr(void *arg);
     749
    747750static void bsp_inter_processor_interrupt(void *arg)
    748751{
     752  unsigned long message;
     753
    749754  (void) arg;
    750755
    751756  smp_apic_ack();
    752757
    753   _SMP_Inter_processor_interrupt_handler();
     758  message = _SMP_Inter_processor_interrupt_handler();
     759
     760  if ((message & SMP_MESSAGE_CLOCK_TICK) != 0) {
     761    Clock_isr(NULL);
     762  }
    754763}
    755764
Note: See TracChangeset for help on using the changeset viewer.