interrupts.cc (9557:8666e81607a6) | interrupts.cc (9623:327bf4242521) |
---|---|
1/* 2 * Copyright (c) 2012-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 583 unchanged lines hidden (view full) --- 592 (divideFromConf(regs[APIC_DIVIDE_CONFIGURATION])); 593 // Schedule on the edge of the next tick plus the new count. 594 Tick offset = curTick() % clockPeriod(); 595 if (offset) { 596 reschedule(apicTimerEvent, 597 curTick() + (newCount + 1) * 598 clockPeriod() - offset, true); 599 } else { | 1/* 2 * Copyright (c) 2012-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 583 unchanged lines hidden (view full) --- 592 (divideFromConf(regs[APIC_DIVIDE_CONFIGURATION])); 593 // Schedule on the edge of the next tick plus the new count. 594 Tick offset = curTick() % clockPeriod(); 595 if (offset) { 596 reschedule(apicTimerEvent, 597 curTick() + (newCount + 1) * 598 clockPeriod() - offset, true); 599 } else { |
600 reschedule(apicTimerEvent, 601 curTick() + newCount * 602 clockPeriod(), true); | 600 if (newCount) 601 reschedule(apicTimerEvent, 602 curTick() + newCount * 603 clockPeriod(), true); |
603 } 604 } 605 break; 606 case APIC_CURRENT_COUNT: 607 //Local APIC Current Count register is read only. 608 return; 609 case APIC_DIVIDE_CONFIGURATION: 610 newVal = val & 0xB; --- 183 unchanged lines hidden --- | 604 } 605 } 606 break; 607 case APIC_CURRENT_COUNT: 608 //Local APIC Current Count register is read only. 609 return; 610 case APIC_DIVIDE_CONFIGURATION: 611 newVal = val & 0xB; --- 183 unchanged lines hidden --- |