All of
 help / color / mirror / Atom feed
From: Randy Dunlap <>
To: Linux PM list <>,
	linux-scsi <>,
	"Rafael J. Wysocki" <>,
	Viresh Kumar <>
Cc: James Smart <>,
	Dick Kennedy <>
Subject: [PATCH -next] cpufreq: add stub for get_cpu_idle_time() to fix scsi/lpfc driver build
Date: Mon, 6 Jul 2020 09:44:46 -0700	[thread overview]
Message-ID: <> (raw)

From: Randy Dunlap <>

To fix a build error in drivers/scsi/lpfc/lpfc_sli.c when
CONFIG_CPU_FREQ is not set/enabled, add a stub function for
get_cpu_idle_time() in <linux/cpufreq.h>.

../drivers/scsi/lpfc/lpfc_sli.c: In function ‘lpfc_init_idle_stat_hb’:
../drivers/scsi/lpfc/lpfc_sli.c:7330:26: error: implicit declaration of function ‘get_cpu_idle_time’; did you mean ‘set_cpu_active’? [-Werror=implicit-function-declaration]
   idle_stat->prev_idle = get_cpu_idle_time(i, &wall, 1);

Signed-off-by: Randy Dunlap <>
Cc: "Rafael J. Wysocki" <>
Cc: Viresh Kumar <>
Cc: James Smart <>
Cc: Dick Kennedy <>
 include/linux/cpufreq.h |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-next-20200706.orig/include/linux/cpufreq.h
+++ linux-next-20200706/include/linux/cpufreq.h
@@ -237,6 +237,10 @@ static inline unsigned int cpufreq_get_h
 	return 0;
+static inline u64 get_cpu_idle_time(unsigned int cpu, u64 *wall, int io_busy)
+	return 0;
 static inline void disable_cpufreq(void) { }

             reply	other threads:[~2020-07-06 16:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06 16:44 Randy Dunlap [this message]
2020-07-07  3:09 ` [PATCH -next] cpufreq: add stub for get_cpu_idle_time() to fix scsi/lpfc driver build Viresh Kumar
2020-07-07 18:18   ` Randy Dunlap
2020-07-08  2:46     ` Viresh Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.