]> git.baikalelectronics.ru Git - arm-tf.git/commit
xilinx: versal: Do not pass ACPU0 always in set_wakeup_source()
authorRavi Patel <ravi.patel@xilinx.com>
Tue, 30 Jul 2019 11:10:07 +0000 (04:10 -0700)
committerManish Pandey <manish.pandey2@arm.com>
Mon, 7 Dec 2020 11:07:24 +0000 (11:07 +0000)
commitb05d2792aec4eab096d6be1355f7134614ee92c3
treec286facd853f354b71a6c18bbb3442aa2e8a8bad
parent7fc19b8ea9531178aec5e88c6b48345419608150
xilinx: versal: Do not pass ACPU0 always in set_wakeup_source()

Existing code passes ACPU0 to LibPM as node_id in set_wakeup_source()
call because last suspending core will be ACPU0 in most of the case.

Now it may be possible that user may disable the ACPU0 using hot-plug
and after that it suspends Linux. So in that case ACPU0 will not be
last suspending core.

To overcome above scenario, pass the current running processor ID
while calling set_wakeup_source().

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: If15354c2150b5bb1305b5f93ca4e8c7a81d59f0a
plat/xilinx/versal/pm_service/pm_client.c