Merge lp:~thomas-voss/platform-api/fix-1335102 into lp:platform-api

Proposed by Thomas Voß
Status: Approved
Approved by: Ricardo Salveti
Approved revision: 284
Proposed branch: lp:~thomas-voss/platform-api/fix-1335102
Merge into: lp:platform-api
Diff against target: 29 lines (+4/-4)
1 file modified
android/hybris/ubuntu_application_gps_for_hybris.cpp (+4/-4)
To merge this branch: bzr merge lp:~thomas-voss/platform-api/fix-1335102
Reviewer Review Type Date Requested Status
Ricardo Salveti (community) Approve
PS Jenkins bot continuous-integration Approve
Ubuntu Phablet Team Pending
Review via email: mp+241796@code.launchpad.net

Commit message

Do not acquire wake locks for gps provider but rely on higher levels of the stack to do the right thing.

Description of the change

Do not acquire wake locks for gps provider but rely on higher levels of the stack to do the right thing.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

LGTM

review: Approve

Unmerged revisions

284. By Thomas Voß

Do not acquire wake locks for gps provider but rely on higher levels of the stack to do the right thing.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'android/hybris/ubuntu_application_gps_for_hybris.cpp'
2--- android/hybris/ubuntu_application_gps_for_hybris.cpp 2014-05-13 10:00:55 +0000
3+++ android/hybris/ubuntu_application_gps_for_hybris.cpp 2014-11-14 13:05:25 +0000
4@@ -23,8 +23,6 @@
5 #include <hardware/gps.h>
6 #include <hardware_legacy/power.h>
7
8-#define WAKE_LOCK_NAME "U_HARDWARE_GPS"
9-
10 struct UHardwareGps_
11 {
12 UHardwareGps_(UHardwareGpsParams* params);
13@@ -126,12 +124,14 @@
14
15 static void acquire_wakelock_callback()
16 {
17- acquire_wake_lock(PARTIAL_WAKE_LOCK, WAKE_LOCK_NAME);
18+ // Empty on purpose. We install the callback
19+ // to make all HAL implementations happy.
20 }
21
22 static void release_wakelock_callback()
23 {
24- release_wake_lock(WAKE_LOCK_NAME);
25+ // Empty on purpose. We install the callback
26+ // to make all HAL implementations happy.
27 }
28
29 static void request_utc_time_callback()

Subscribers

People subscribed via source and target branches