Skip to content

Commit 8da6d21

Browse files
popcornmixPhil Elwell
authored and
Phil Elwell
committed
Revert "hid: Reduce default mouse polling interval to 60Hz"
This reverts commit b45c044.
1 parent 2a9ca8f commit 8da6d21

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/hid/usbhid/hid-core.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* Module parameters.
4949
*/
5050

51-
static unsigned int hid_mousepoll_interval = ~0;
51+
static unsigned int hid_mousepoll_interval;
5252
module_param_named(mousepoll, hid_mousepoll_interval, uint, 0644);
5353
MODULE_PARM_DESC(mousepoll, "Polling interval of mice");
5454

@@ -1098,9 +1098,7 @@ static int usbhid_start(struct hid_device *hid)
10981098
/* Change the polling interval of mice and joysticks. */
10991099
switch (hid->collection->usage) {
11001100
case HID_GD_MOUSE:
1101-
if (hid_mousepoll_interval == ~0 && interval < 16)
1102-
interval = 16;
1103-
else if (hid_mousepoll_interval != ~0 && hid_mousepoll_interval != 0)
1101+
if (hid_mousepoll_interval > 0)
11041102
interval = hid_mousepoll_interval;
11051103
break;
11061104
case HID_GD_JOYSTICK:

0 commit comments

Comments
 (0)