Usage of notifier callback in devfreq
Hi
We want to implement DCVS for video device. Video device interrupts the driver when the frequency needs to be updated. Since conventional governors work on polling mechanism we would like to know how we can implement a governor with event based mechanism. We would like to use the notifier callback in devfreq for this to wake up the governor at certain points so it can query the new stats from video driver. Is this the right approach? If not can you please suggest an alternative. Any examples will be of great help.
Notifier callback we plan to use is @
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/devfreq/devfreq.c?id=refs/tags/v3.19#n480
Thanks
Vinay