public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Export available frequencies on K7 mobile CPUs
@ 2003-12-23 18:04 Kronos
  2003-12-23 18:25 ` Prevailence of PS/2 Active Muxed devices? J.C. Wren
  0 siblings, 1 reply; 4+ messages in thread
From: Kronos @ 2003-12-23 18:04 UTC (permalink / raw)
  To: davej; +Cc: linux-kernel


Hi,
the following patch make powernow-k7.c export supported frequencies via
sysfs. I'm trying to write a scaling deamon and I need to know them.

--- linux-2.6/arch/i386/kernel/cpu/cpufreq/powernow-k7.c.orig	Fri Dec 19 19:27:48 2003
+++ linux-2.6/arch/i386/kernel/cpu/cpufreq/powernow-k7.c	Fri Dec 21 20:42:21 2003
@@ -389,15 +389,29 @@
 	policy->cpuinfo.transition_latency = latency;
 	policy->cur = maximum_speed;
 
+	cpufreq_frequency_table_get_attr(powernow_table, policy->cpu);
+
 	return cpufreq_frequency_table_cpuinfo(policy, powernow_table);
 }
 
+static int powernow_cpu_exit (struct cpufreq_policy *policy) {
+	cpufreq_frequency_table_put_attr(policy->cpu);
+	return 0;
+}
+
+static struct freq_attr* powernow_table_attr[] = {
+	&cpufreq_freq_attr_scaling_available_freqs,
+	NULL,
+};
+
 static struct cpufreq_driver powernow_driver = {
 	.verify 	= powernow_verify,
 	.target 	= powernow_target,
 	.init		= powernow_cpu_init,
+	.exit		= powernow_cpu_exit,
 	.name		= "powernow-k7",
 	.owner		= THIS_MODULE,
+	.attr		= powernow_table_attr,
 };
 
 static int __init powernow_init (void)


Luca
-- 
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
La vasca da bagno fu inventata nel 1850, il telefono nel 1875.
Se fossi vissuto nel 1850, avrei potuto restare in vasca per 25 anni
senza sentir squillare il telefono

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

* Prevailence of PS/2 Active Muxed devices?
  2003-12-23 18:04 [PATCH] Export available frequencies on K7 mobile CPUs Kronos
@ 2003-12-23 18:25 ` J.C. Wren
  2003-12-23 18:47   ` J.C. Wren
  2003-12-23 18:50   ` Dmitry Torokhov
  0 siblings, 2 replies; 4+ messages in thread
From: J.C. Wren @ 2003-12-23 18:25 UTC (permalink / raw)
  To: linux-kernel

	I have an application where I'd like to specifically control which PS/2 aux 
device data is sent/received from/to.  Particularly, on a laptop that has an 
integrated touch pad, I'd like to select the external mouse port.  

	This document http://www.synaptics-uk.com/decaf/utilities/ps2-mux.PDF 
describes what appears to be a rather well thought method for multiple aux 
devices on a single KBC.

	Looking through the kernel sources, I see no handling for this.  From a big 
picture perspective, how does Linux handle a system with an integrated mouse 
pad, and an external PS/2 mouse port?  Is this whole Synaptics idea dead, or 
is support for this planned, or even considered?  Does any one have any 
knowledge the number of KBCs with this muxing?  

	Seeing some of the parties that partcipated in the standards, it would be a 
touch surprising if it just completely died.

	--jc


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

* Re: Prevailence of PS/2 Active Muxed devices?
  2003-12-23 18:25 ` Prevailence of PS/2 Active Muxed devices? J.C. Wren
@ 2003-12-23 18:47   ` J.C. Wren
  2003-12-23 18:50   ` Dmitry Torokhov
  1 sibling, 0 replies; 4+ messages in thread
From: J.C. Wren @ 2003-12-23 18:47 UTC (permalink / raw)
  To: linux-kernel

	Naturally, after spending 45 minutes looking through mouse and keyboard 
sources in 2.4.21 on the laptop, I find it in i8042.c in the 2.6 tree.

	Now to see if something can actually be done with it...

	--jc

On Tuesday 23 December 2003 13:25 pm, J.C. Wren wrote:
> 	I have an application where I'd like to specifically control which PS/2
> aux device data is sent/received from/to.  Particularly, on a laptop that
> has an integrated touch pad, I'd like to select the external mouse port.
>
> 	This document http://www.synaptics-uk.com/decaf/utilities/ps2-mux.PDF
> describes what appears to be a rather well thought method for multiple aux
> devices on a single KBC.
>
> 	Looking through the kernel sources, I see no handling for this.  From a
> big picture perspective, how does Linux handle a system with an integrated
> mouse pad, and an external PS/2 mouse port?  Is this whole Synaptics idea
> dead, or is support for this planned, or even considered?  Does any one
> have any knowledge the number of KBCs with this muxing?
>
> 	Seeing some of the parties that partcipated in the standards, it would be
> a touch surprising if it just completely died.
>
> 	--jc
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


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

* Re: Prevailence of PS/2 Active Muxed devices?
  2003-12-23 18:25 ` Prevailence of PS/2 Active Muxed devices? J.C. Wren
  2003-12-23 18:47   ` J.C. Wren
@ 2003-12-23 18:50   ` Dmitry Torokhov
  1 sibling, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2003-12-23 18:50 UTC (permalink / raw)
  To: jcwren, linux-kernel

On Tuesday 23 December 2003 01:25 pm, J.C. Wren wrote:
>         Looking through the kernel sources, I see no handling for this.
>  From a big picture perspective, how does Linux handle a system with an
> integrated mouse pad, and an external PS/2 mouse port?  Is this whole
> Synaptics idea dead, or is support for this planned, or even
> considered?  Does any one have any knowledge the number of KBCs with
> this muxing?

No, it's alive and kicking... see drivers/input/serio/i8042.c -
i8042_check_mux()

Dmitry

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

end of thread, other threads:[~2003-12-23 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-23 18:04 [PATCH] Export available frequencies on K7 mobile CPUs Kronos
2003-12-23 18:25 ` Prevailence of PS/2 Active Muxed devices? J.C. Wren
2003-12-23 18:47   ` J.C. Wren
2003-12-23 18:50   ` Dmitry Torokhov

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