linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: vkalia@codeaurora.org
To: linux-pm@vger.kernel.org
Subject: Usage of notifier callback in devfreq
Date: Fri, 13 Feb 2015 20:41:05 -0000	[thread overview]
Message-ID: <afeecb7da6f34951d9ca16fcd72aeb39.squirrel@www.codeaurora.org> (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


                 reply	other threads:[~2015-02-13 20:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afeecb7da6f34951d9ca16fcd72aeb39.squirrel@www.codeaurora.org \
    --to=vkalia@codeaurora.org \
    --cc=linux-pm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).