misc: tegra-throughput: Use notifiers
authorArto Merilainen <amerilainen@nvidia.com>
Wed, 25 Sep 2013 12:39:34 +0000 (15:39 +0300)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 3 Oct 2013 13:47:34 +0000 (18:47 +0530)
commit2e6522ef587a78687cf260ee18dcda98a92e8b61
tree3672675b49e8474a8c09925fd3119f812671e008
parent904d3efc992e52d6d68b00ee4e73c92a3289fba2
misc: tegra-throughput: Use notifiers

We used to deliver this information by calling directly a function
inside nvhost_pod. This is not suitable for our needs as we want
to be able to use the same governor with several different (graphics)
devices in the same system.

This patch modifies tegra-throughput to use notifier chain for
delivering information about changed throughput hint.

Bug 1364804

Change-Id: Ifce1c84ae68cdcf54b00402efa80aee0b220bc9e
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
(cherry picked from commit 9f10cf7082055f81c201ab5f5574c2f8fe8c6795)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
drivers/misc/tegra-throughput.c
drivers/video/tegra/host/gr3d/pod_scaling.c
include/linux/nvhost.h
include/linux/tegra-throughput.h [new file with mode: 0644]