in kernel/sched/core.c, init_rq_hrtick(rq) is called by sched_init(). init_rq_hrtick(rq) initialize hrtick_timer and specifies the callback function to be called upon expiration.
01 static void init_rq_hrtick(struct rq *rq)
02 {
03 #ifdef CONFIG_SMP
04 rq->hrtick_csd_pending = 0;
05
06 rq->hrtick_csd.flags = 0;
07 rq->hrtick_csd.func = __hrtick_start;
08 rq->hrtick_csd.info = rq;
09 #endif
10
11 hrtimer_init(&rq->hrtick_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
*12 rq->hrtick_timer.function = hrtick;*
13 }
i set CONFIG_SCHED_HRTICK=y.
but hrtick function which is setted by init_rq_hrtick() as a callback function is not called periodically. can you tell me why callback function is not called?
my kernel version is 4.13.16