diff options
author | Ilan Aelion <iaelion@nvidia.com> | 2012-06-27 18:58:11 -0600 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-07-30 08:37:00 -0700 |
commit | e402db9b3737209c9981aea5970328d7c1cb06ce (patch) | |
tree | 245efed1639bfb099649c6d81263ea1a7e752cd9 /arch/arm/mach-tegra/include | |
parent | 8055acfa05c82997bdcfbce5093b9cd963251d2a (diff) |
misc: tegra-throughput: adding throughput dev node
Creates a miscdev at /dev/tegra-throughput which gl will use to set a
target frame rate. In addition it receives notifications from dc on
flip events. On each notification the percentage ratio of the actual
frame time to the target frame time is calculated. In subsequent
changes this ratio will be reported to other modules as a throughput
hint.
Bug 991589
Change-Id: Ieaa2b2755b63d2d071de31e3ef819d4c3b51a956
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/dc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index 161e37616497..47210c1cd87b 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -25,6 +25,7 @@ #include <linux/pm.h> #include <linux/types.h> #include <drm/drm_fixed.h> +#include <linux/notifier.h> #define TEGRA_MAX_DC 2 #define DC_N_WINDOWS 3 @@ -584,4 +585,8 @@ struct tegra_dc_edid { struct tegra_dc_edid *tegra_dc_get_edid(struct tegra_dc *dc); void tegra_dc_put_edid(struct tegra_dc_edid *edid); +int tegra_dc_register_flip_notifier(struct notifier_block *nb); +int tegra_dc_unregister_flip_notifier(struct notifier_block *nb); +int tegra_dc_get_panel_sync_rate(void); + #endif |