display: skip state change operation if next state is same as current state 66/92766/1 accepted/tizen/common/20161018.175429 accepted/tizen/ivi/20161019.141917 accepted/tizen/mobile/20161019.141844 accepted/tizen/tv/20161019.141858 accepted/tizen/wearable/20161019.141911 submit/tizen/20161018.130249
authortaeyoung <ty317.kim@samsung.com>
Tue, 18 Oct 2016 11:40:04 +0000 (20:40 +0900)
committertaeyoung <ty317.kim@samsung.com>
Tue, 18 Oct 2016 11:40:04 +0000 (20:40 +0900)
commit819cd27d75a80834c4f5bf746462040915a548a9
tree46c0d21a6710987c4be15389fb706b8022f12a90
parent12ae5d63e6c4a014f6dd7a08d6c3977d4b1a9c15
display: skip state change operation if next state is same as current state

- Previously, display state was set again even if next state
  is same as current state. Thus display was turned on for a while
  during turning off the display since pm_cur_state was updated
  after turning off the display and checking if the state is transitable.

- Now, display transition is ignored if next state is same as
  current state. Thus the state is not transitable in the case.

Change-Id: I605916c5e2235e46b0b8b04375b4427b32584665
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/display/core.c