Skip to content

Commit

Permalink
Merge branch 'pm-devfreq'
Browse files Browse the repository at this point in the history
* pm-devfreq:
  PM / devfreq: exynos: Enable building exynos PPMU as module
  PM / devfreq: Export helper functions for drivers
  PM / devfreq: Remove ARCH_HAS_OPP completely
  • Loading branch information
Rafael J. Wysocki committed Oct 6, 2014
2 parents 4734c6e + c8bc5f1 commit c9671d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/devfreq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ config ARM_EXYNOS4_BUS_DEVFREQ
This does not yet operate with optimal voltages.

config ARM_EXYNOS5_BUS_DEVFREQ
bool "ARM Exynos5250 Bus DEVFREQ Driver"
tristate "ARM Exynos5250 Bus DEVFREQ Driver"
depends on SOC_EXYNOS5250
select ARCH_HAS_OPP
select DEVFREQ_GOV_SIMPLE_ONDEMAND
select PM_OPP
help
Expand Down
3 changes: 3 additions & 0 deletions drivers/devfreq/devfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ struct dev_pm_opp *devfreq_recommended_opp(struct device *dev,

return opp;
}
EXPORT_SYMBOL(devfreq_recommended_opp);

/**
* devfreq_register_opp_notifier() - Helper function to get devfreq notified
Expand All @@ -1142,6 +1143,7 @@ int devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq)

return ret;
}
EXPORT_SYMBOL(devfreq_register_opp_notifier);

/**
* devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq
Expand All @@ -1168,6 +1170,7 @@ int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq)

return ret;
}
EXPORT_SYMBOL(devfreq_unregister_opp_notifier);

static void devm_devfreq_opp_release(struct device *dev, void *res)
{
Expand Down
3 changes: 3 additions & 0 deletions drivers/devfreq/exynos/exynos_ppmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ void busfreq_mon_reset(struct busfreq_ppmu_data *ppmu_data)
exynos_ppmu_start(ppmu_base);
}
}
EXPORT_SYMBOL(busfreq_mon_reset);

void exynos_read_ppmu(struct busfreq_ppmu_data *ppmu_data)
{
Expand All @@ -97,6 +98,7 @@ void exynos_read_ppmu(struct busfreq_ppmu_data *ppmu_data)

busfreq_mon_reset(ppmu_data);
}
EXPORT_SYMBOL(exynos_read_ppmu);

int exynos_get_busier_ppmu(struct busfreq_ppmu_data *ppmu_data)
{
Expand All @@ -114,3 +116,4 @@ int exynos_get_busier_ppmu(struct busfreq_ppmu_data *ppmu_data)

return busy;
}
EXPORT_SYMBOL(exynos_get_busier_ppmu);

0 comments on commit c9671d1

Please sign in to comment.