Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is timer callback function preemptable in softirq? #57

Open
kaizsv opened this issue Apr 18, 2018 · 0 comments
Open

Is timer callback function preemptable in softirq? #57

kaizsv opened this issue Apr 18, 2018 · 0 comments

Comments

@kaizsv
Copy link
Contributor

kaizsv commented Apr 18, 2018

sched_enqueue(timer->owner);

Softirq is a thread like main or idle in Piko/RT. Is softirq preemptable or tasklet preemptable?

For example, the callback function of msleep will call sched_enqueue. It first adds a thread at the tail of the queue, and then sets the priority level at the unsigned integer, map. If PendSV preempts at the first step and swap the active and expired runqueue because the value of map of active runqueue is zero. This will cause an error.

The GDB says the systick can preempt the softirq, but I can not specify the interrupt point at the softirq. I am wondering, whether the callback function (msleep_callback) is preemptable at the execution time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant