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
=== modified file 'android/hybris/ubuntu_application_gps_for_hybris.cpp'
--- android/hybris/ubuntu_application_gps_for_hybris.cpp 2014-05-13 10:00:55 +0000
+++ android/hybris/ubuntu_application_gps_for_hybris.cpp 2014-11-14 13:05:25 +0000
@@ -23,8 +23,6 @@
23#include <hardware/gps.h>23#include <hardware/gps.h>
24#include <hardware_legacy/power.h>24#include <hardware_legacy/power.h>
2525
26#define WAKE_LOCK_NAME "U_HARDWARE_GPS"
27
28struct UHardwareGps_26struct UHardwareGps_
29{27{
30 UHardwareGps_(UHardwareGpsParams* params);28 UHardwareGps_(UHardwareGpsParams* params);
@@ -126,12 +124,14 @@
126124
127static void acquire_wakelock_callback()125static void acquire_wakelock_callback()
128{126{
129 acquire_wake_lock(PARTIAL_WAKE_LOCK, WAKE_LOCK_NAME);127 // Empty on purpose. We install the callback
128 // to make all HAL implementations happy.
130}129}
131130
132static void release_wakelock_callback()131static void release_wakelock_callback()
133{132{
134 release_wake_lock(WAKE_LOCK_NAME);133 // Empty on purpose. We install the callback
134 // to make all HAL implementations happy.
135}135}
136136
137static void request_utc_time_callback()137static void request_utc_time_callback()

Subscribers

People subscribed via source and target branches