|
|
Log in / Subscribe / Register

cpuidle, haltpoll: governor switching on idle register

From:  Joao Martins <joao.m.martins-AT-oracle.com>
To:  linux-pm-AT-vger.kernel.org
Subject:  [PATCH v1 0/4] cpuidle, haltpoll: governor switching on idle register
Date:  Tue, 3 Sep 2019 12:39:09 +0100
Message-ID:  <20190903113913.9257-1-joao.m.martins@oracle.com>
Cc:  Joao Martins <joao.m.martins-AT-oracle.com>, "Rafael J. Wysocki" <rjw-AT-rjwysocki.net>, Daniel Lezcano <daniel.lezcano-AT-linaro.org>, linux-kernel-AT-vger.kernel.org, Marcelo Tosatti <mtosatti-AT-redhat.com>, kvm-AT-vger.kernel.org
Archive-link:  Article

Hey,

Presented herewith a series with aims to tie in together the haltpoll
idle driver and governor, without sacrificing previous governor setups.
In addition, there are a few fixes with respect to module loading for
cpuidle-haltpoll. 

The series is organized as follows:

 Patch 1: Allows idle driver stating a preferred governor that it
          wants to use, based on discussion here:

  https://lore.kernel.org/kvm/457e8ca1-beb3-ca39-b257-e7bc6...

 Patch 2: Decrease rating of governor, and allows previous defaults
	  to be as before haltpoll, while using @governor to switch to haltpoll
	  when haltpoll driver is registered;

 Patch 3 - 4: Module loading fixes. first is the incorrect error
	      reporting and second is supportting module unloading.

Thoughts, comments appreciated.

Thanks,
	Joao

Joao Martins (4):
  cpuidle: allow governor switch on cpuidle_register_driver()
  cpuidle-haltpoll: set haltpoll as preferred governor
  cpuidle-haltpoll: return -ENODEV on modinit failure
  cpuidle-haltpoll: do not set an owner to allow modunload

 drivers/cpuidle/cpuidle-haltpoll.c   |  4 ++--
 drivers/cpuidle/cpuidle.h            |  1 +
 drivers/cpuidle/driver.c             | 26 ++++++++++++++++++++++++++
 drivers/cpuidle/governor.c           |  6 +++---
 drivers/cpuidle/governors/haltpoll.c |  2 +-
 include/linux/cpuidle.h              |  3 +++
 6 files changed, 36 insertions(+), 6 deletions(-)

-- 
2.17.1



Copyright © 2019, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds