mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.5.64-bk[2-4]: CONFIG_CPU_FREQ_24_API breaks kernel/cpufreq.c compile
@ 2003-03-09 19:17 Adam J. Richter
  2003-03-09 19:35 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: Adam J. Richter @ 2003-03-09 19:17 UTC (permalink / raw)
  To: linux, rmk; +Cc: linux-kernel

	linux-2.5.64-bk2 added the following lines to
cpufreq_add_dev in kernel/cpufreq.c:

#ifdef CONFIG_CPU_FREQ_24_API
        cpu_min_freq[cpu] = cpufreq_driver->policy[cpu].cpuinfo.min_freq;
        cpu_max_freq[cpu] = cpufreq_driver->policy[cpu].cpuinfo.max_freq;
        cpu_cur_freq[cpu] = cpufreq_driver->cpu_cur_freq[cpu];
#endif


	However, cpu_{min,max,cur}_freq are static variables in
drivers/cpufreq/userspace.c.  Making the variables global is not a
sufficient fix, because drivers/cpufreq/userspace.c can be built as
separate module.  So, I guess the variables should be moved to
kernel/cpufreq.c or the code that I quoted above should somehow be
moved.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-09 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-09 19:17 2.5.64-bk[2-4]: CONFIG_CPU_FREQ_24_API breaks kernel/cpufreq.c compile Adam J. Richter
2003-03-09 19:35 ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®