kernel: spec_core: Update API setup_timer() to timer_setup()
The API was modified in linux-v4.14 at
commit e99e88a9d2b067465adaa9c111ada99a041bef9a ("treewide:
setup_timer() -> timer_setup()")
In software/kernel:
- in 'fd-irq.c', the function fd_tlet() was used for both timer and
interrupt-tasklet.
- this function was of type: void (func)(unsigned long).
- both setup_timer() and tasklet_init() use this function-type as one
of their arguments.
- setup_timer() was updated to timer_setup() which now accepts a
function of type void (func)(struct timer_list*).
Thus,:
- define fd_tlet_interrupt() of type void (func)(unsigned long).
- define fd_tlet_timer() of type void (func)(struct timer_list*).
- Update fd_tlet() to type void (func)(struct fd_dev*)
After completing their specific jobs, fd_tlet_interrupt() and fd_tlet_timer()
call fd_tlet() to execute the codes common to both.
Signed-off-by: Vaibhav Gupta <vaibhav.gupta@cern.ch>
Showing
Please
register
or
sign in
to comment