This patchs add the new 'pass_gov_dummy' governor which doesn't contain
the govenory policy to decide the next level. Some resource don't need
to monitor the resource status peridically and to decide the next level
according to the utilization. This dummy governor just initialize the
resource.
Change-Id: Icdf25902e9656ebb6587f430b30ee8c21475de47
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
struct pass_hotplug *hotplug;
switch (type) {
+ case PASS_GOV_DUMMY:
+ return NULL;
case PASS_GOV_STEP:
case PASS_GOV_RADIATION:
hotplug = calloc(1, sizeof(struct pass_hotplug));
* - Step governor
* - Radiation governor
*/
+static struct pass_governor pass_gov_dummy = {
+ .name = "pass_dummy",
+ .init = __pass_governor_init,
+ .exit = __pass_governor_exit,
+ .update = __pass_governor_update,
+ .governor = NULL,
+};
+
static struct pass_governor pass_gov_step = {
.name = "pass_step",
.init = __pass_governor_init,
enum pass_gov_type type)
{
switch (type) {
+ case PASS_GOV_DUMMY:
+ return &pass_gov_dummy;
case PASS_GOV_STEP:
return &pass_gov_step;
case PASS_GOV_RADIATION:
* PASS Governor type
*/
enum pass_gov_type {
- PASS_GOV_STEP,
- PASS_GOV_RADIATION,
+ PASS_GOV_DUMMY = 0,
+ PASS_GOV_STEP = 1,
+ PASS_GOV_RADIATION = 2,
PASS_GOV_END,
};