Skip to contentSkip to conversation

+ drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Dec 16, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 16 Dec 2013 11:55:56 -0800

The patch titled
Subject: drivers/video/backlight/backlight.c: remove backlight sysfs uevent
has been added to the -mm tree. Its filename is
drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Kyungmin Park <[email protected]>
Subject: drivers/video/backlight/backlight.c: remove backlight sysfs uevent

Most mobile phones have Ambient Light Sensors and it changes brightness according to the lux. It means it changes backlight brightness frequently by just writing sysfs node, so it generates uevent.

Usually there's no user to use this backlight changes. But it forks udev worker threads and it takes about 5ms. The main problem is that it hurts other process activities. so remove it.

Kay said
"Uevents are for the major, low-frequent, global device state-changes,
not for carrying-out any sort of measurement data. Subsystems which need that should use other facilities like poll()-able sysfs file or any other subscription-based, client-tracking interface which does not cause overhead if it isn't used. Uevents are not the right thing to use here, and upstream udev should not paper-over broken kernel subsystems."

Cc Henrique de Moraes Holschuh <[email protected]>
Cc Matthew Garrett <[email protected]>
Cc Kay Sievers <[email protected]>
Cc Henrique de Moraes Holschuh <[email protected]>
Cc Richard Purdie <[email protected]>

---

 drivers/video/backlight/backlight.c |    2 --
 1 file changed, 2 deletions(-)
drivers/video/backlight/backlight.c renamed from drivers/video/backlight/backlight.c~drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent +0 -1
diff -puN drivers/video/backlight/backlight.c~drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent drivers/video/backlight/backlight.c
@@ -175,8 +175,6 @@ static ssize_t brightness_store(struct d
 	}
 	mutex_unlock(&bd->ops_lock);
 
-	backlight_generate_event(bd, BACKLIGHT_UPDATE_SYSFS);