Skip to contentSkip to conversation

Usage of notifier callback in devfreq

DISCUSSION [email protected] 1 participant 1 message Feb 13, 2015

lore
Share & tools
lore
#0 lore raw

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