[STYLE_FIX]
This commit is contained in:
parent
cddc4e6ef5
commit
a32264bfb5
7 changed files with 14 additions and 9 deletions
|
|
@ -26,7 +26,8 @@ struct timer {
|
|||
typedef volatile struct timer timer_t;
|
||||
extern timer_t *priv_timer;
|
||||
|
||||
static inline void resetTimer(void) {
|
||||
static inline void resetTimer(void)
|
||||
{
|
||||
priv_timer->ints = TMR_INTS_EVENT;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ extern timer_t *timer;
|
|||
|
||||
static inline void resetTimer(void)
|
||||
{
|
||||
timer->tmr_irq_sta_reg = TMR0_IRQ_PEND_FLAG;
|
||||
timer->tmr_irq_sta_reg = TMR0_IRQ_PEND_FLAG;
|
||||
}
|
||||
|
||||
#endif /* !__PLAT_MACHINE_TIMER_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@
|
|||
|
||||
#define TIMER_CLOCK_HZ 7000000llu
|
||||
|
||||
static inline void resetTimer(void) {
|
||||
static inline void resetTimer(void)
|
||||
{
|
||||
/* Nothing to do */
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@
|
|||
|
||||
#define TIMER_CLOCK_HZ 24000000llu
|
||||
|
||||
static inline void resetTimer(void) {
|
||||
static inline void resetTimer(void)
|
||||
{
|
||||
mct_reset();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ schedule(void)
|
|||
NODE_STATE(ksCurThread) == NODE_STATE(ksIdleThread)
|
||||
|| (candidate->tcbPriority < NODE_STATE(ksCurThread)->tcbPriority);
|
||||
if (fastfail &&
|
||||
!isHighestPrio(ksCurDomain, candidate->tcbPriority)) {
|
||||
!isHighestPrio(ksCurDomain, candidate->tcbPriority)) {
|
||||
SCHED_ENQUEUE(candidate);
|
||||
/* we can't, need to reschedule */
|
||||
NODE_STATE(ksSchedulerAction) = SchedulerAction_ChooseNewThread;
|
||||
|
|
@ -408,7 +408,7 @@ void
|
|||
possibleSwitchTo(tcb_t* target)
|
||||
{
|
||||
if (ksCurDomain != target->tcbDomain
|
||||
SMP_COND_STATEMENT(|| target->tcbAffinity != getCurrentCPUIndex())) {
|
||||
SMP_COND_STATEMENT( || target->tcbAffinity != getCurrentCPUIndex())) {
|
||||
SCHED_ENQUEUE(target);
|
||||
} else if (NODE_STATE(ksSchedulerAction) != SchedulerAction_ResumeCurrentThread) {
|
||||
/* Too many threads want special treatment, use regular queues. */
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
timer_t *mct = (timer_t *) EXYNOS_MCT_PPTR;
|
||||
|
||||
BOOT_CODE void initTimer(void) {
|
||||
BOOT_CODE void initTimer(void)
|
||||
{
|
||||
|
||||
mct_clear_write_status();
|
||||
|
||||
|
|
@ -27,7 +28,7 @@ BOOT_CODE void initTimer(void) {
|
|||
mct->global.comp0_add_inc = TIMER_RELOAD;
|
||||
|
||||
uint64_t comparator_value = ((((uint64_t) mct->global.cnth) << 32llu)
|
||||
| mct->global.cntl) + TIMER_RELOAD;
|
||||
| mct->global.cntl) + TIMER_RELOAD;
|
||||
mct->global.comp0h = (uint32_t) (comparator_value >> 32u);
|
||||
mct->global.comp0l = (uint32_t) comparator_value;
|
||||
/* Enable interrupts */
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
timer_t *mct = (timer_t *) EXYNOS_MCT_PPTR;
|
||||
|
||||
BOOT_CODE void initTimer(void) {
|
||||
BOOT_CODE void initTimer(void)
|
||||
{
|
||||
mct_clear_write_status();
|
||||
|
||||
/* use the arm generic timer, backed by the mct */
|
||||
|
|
|
|||
Loading…
Reference in a new issue