diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2011-08-25 14:30:52 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:47 -0800 |
commit | fb6c8d1e604725cca6d1de19314b2ad6ac3f8cd3 (patch) | |
tree | e9d96fc2677a6a2c7887e8b54fbe7a6aa59f0fbe /drivers/video/tegra/host/nvhost_acm.c | |
parent | 5a8cb95d768cfd40252cf3b1cd15a97f52db5143 (diff) |
nvhost: power: Remove minimum clock rate
As each client has its own instance of all shared clocks, minimum clock
rates can be removed from nvhost and be delegated to clock subsystem.
Bug 868554
Original-Change-Id: Iaa59c8a7f9bd6e992280895acf800594bc3b4508
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/49611
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Rebase-Id: R692bd4e41b2419a88ab4a50f3abd632b8f5e5e12
Diffstat (limited to 'drivers/video/tegra/host/nvhost_acm.c')
-rw-r--r-- | drivers/video/tegra/host/nvhost_acm.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/video/tegra/host/nvhost_acm.c b/drivers/video/tegra/host/nvhost_acm.c index cb55055a47bd..b7a06f380d27 100644 --- a/drivers/video/tegra/host/nvhost_acm.c +++ b/drivers/video/tegra/host/nvhost_acm.c @@ -36,7 +36,6 @@ #define ACM_POWERDOWN_HANDLER_DELAY_MSEC 25 #define ACM_SUSPEND_WAIT_FOR_IDLE_TIMEOUT (2 * HZ) #define POWERGATE_DELAY 10 - #define HOST_EMC_FLOOR 300000000 #define MAX_DEVID_LENGTH 16 @@ -386,10 +385,8 @@ static const char *get_module_clk_id_tegra2(const char *module, int index, name = "emc"; } - if (name) { + if (name) info->default_rate = UINT_MAX; - info->min_rate = UINT_MAX; - } return name; } @@ -416,10 +413,9 @@ static const char *get_module_clk_id_tegra3(const char *module, int index, } if (name) { - if (strcmp(name, "emc") == 0) { + if (strcmp(name, "emc") == 0) info->default_rate = HOST_EMC_FLOOR; - info->min_rate = info->default_rate; - } else if (strcmp(name, "gr2d") == 0) + else if (strcmp(name, "gr2d") == 0) info->default_rate = 0; else info->default_rate = UINT_MAX; @@ -435,7 +431,6 @@ static const char *get_module_clk(const char *module, { const char *clk_id = NULL; char devname[MAX_DEVID_LENGTH]; - info->min_rate = 0; switch (tegra_get_chipid()) { case TEGRA_CHIPID_TEGRA2: @@ -460,7 +455,6 @@ static const char *get_module_clk(const char *module, } info->default_rate = clk_round_rate(info->clk, info->default_rate); - info->min_rate = clk_round_rate(info->clk, info->min_rate); if (info->default_rate < 0) { pr_err("%s: can't get maximum rate for %s\n", __func__, clk_id); @@ -521,7 +515,6 @@ int nvhost_module_set_rate(struct nvhost_module *mod, void *priv, list_for_each_entry(m, &mod->client_list, node) { if (m->priv == priv) { rate = clk_round_rate(mod->clk[index].clk, rate); - rate = max(mod->clk[index].min_rate, rate); m->rate[index] = rate; break; } |