Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions preempt_sched/task_sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static void task_add(task_callback_t *func, void *param)
preempt_enable();
}

static void timer_handler(int signo, siginfo_t *info, ucontext_t *ctx)
static void timer_handler(int signo, siginfo_t *info, void *ctx)
{
if (preempt_count) /* once preemption is disabled */
return;
Expand All @@ -180,7 +180,7 @@ static void timer_handler(int signo, siginfo_t *info, ucontext_t *ctx)
static void timer_init(void)
{
struct sigaction sa = {
.sa_handler = (void (*)(int)) timer_handler,
.sa_sigaction = timer_handler,
.sa_flags = SA_SIGINFO,
};
sigfillset(&sa.sa_mask);
Expand Down