Skip to content

Commit

Permalink
PowerHAL: Adds the powerHAL similar to generic powerHAL and adds
Browse files Browse the repository at this point in the history
the low power mode power hint.

Low Power Mode power hint caps the maximum frequency.
It also reduces the refresh rate by making a service call to the
SurfaceFlinger.
In case of hot plugged cpu, the max frequency is set when the cpu is
hotplugged in, using uevent notifications.

Change-Id: I1cf458c4f128818ad1286e5a90b0d359b6913bb8
Signed-off-by: Ruchi Kandoi <[email protected]>
  • Loading branch information
Ruchi Kandoi committed May 12, 2014
1 parent 1ae1541 commit cf720af
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 0 deletions.
3 changes: 3 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
bdAddrLoader

PRODUCT_PACKAGES += \
power.hammerhead

PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=196608

Expand Down
25 changes: 25 additions & 0 deletions power/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Copyright 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := power_hammerhead.c
LOCAL_SHARED_LIBRARIES := liblog libcutils
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := power.hammerhead
include $(BUILD_SHARED_LIBRARY)
Loading

0 comments on commit cf720af

Please sign in to comment.