[STYLE_FIX]

This commit is contained in:
Bamboo 2017-11-28 00:02:37 +00:00
parent cddc4e6ef5
commit a32264bfb5
7 changed files with 14 additions and 9 deletions

View file

@ -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;
}

View file

@ -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 */

View file

@ -15,7 +15,8 @@
#define TIMER_CLOCK_HZ 7000000llu
static inline void resetTimer(void) {
static inline void resetTimer(void)
{
/* Nothing to do */
}

View file

@ -17,7 +17,8 @@
#define TIMER_CLOCK_HZ 24000000llu
static inline void resetTimer(void) {
static inline void resetTimer(void)
{
mct_reset();
}

View file

@ -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. */

View file

@ -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 */

View file

@ -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 */