Re: [PATCH 2.6.21-rc4] hwmon: HP Mobile Data Protection System 3DACPI driver

From: Yan Burman
Date: Fri Mar 23 2007 - 17:02:13 EST


Dmitry Torokhov wrote:
Hi Yan,

On 3/23/07, Yan Burman <burman.yan@xxxxxxxxx> wrote:
+
+static unsigned int input_3d;
+module_param(input_3d, bool, S_IRUGO);
+MODULE_PARM_DESC(input_3d, "Operate as a 3D joystick instead of 2D");

Why do you need that? Just have the driver always report all 3 events
and have applications decide if they want to use ABS_Z events...

Getting the coordinates goes through ACPI, so it eats up CPU. I think I remember seeing
up to 15-16% CPU usage with all 3 events.
That is why you probably want to disable it in most cases.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/