linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [Query] ARM64 : arm_pm_restart intialization
@ 2015-01-19 12:27 Pankaj Chauhan
  2015-01-19 13:19 ` Marc Zyngier
  0 siblings, 1 reply; 2+ messages in thread
From: Pankaj Chauhan @ 2015-01-19 12:27 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

I have a small query regarding machine_restart() for ARM64.

For both ARM64 and ARM32 machine_restart() (arch/arm*/kernel/process.c)
calls arm_pm_restart, for doing machine specific restart. For ARM32 arm_pm_restart, 
gets initialized by 'machine_desc.restart' provided by each machine/platform
implementation.

For ARM64 how are different platforms supposed to initialize arm_pm_restart pointer? 
(As there is no struct machine_desc defined for ARM64). Is there a framework similar
to machine_desc for setting up the restart handlers?

Thanks,
pankaj

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Query] ARM64 : arm_pm_restart intialization
  2015-01-19 12:27 [Query] ARM64 : arm_pm_restart intialization Pankaj Chauhan
@ 2015-01-19 13:19 ` Marc Zyngier
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Zyngier @ 2015-01-19 13:19 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Jan 19 2015 at 12:27:04 pm GMT, Pankaj Chauhan <Pankaj.Chauhan@freescale.com> wrote:
> Hello,
>
> I have a small query regarding machine_restart() for ARM64.
>
> For both ARM64 and ARM32 machine_restart()
> (arch/arm*/kernel/process.c) calls arm_pm_restart, for doing machine
> specific restart. For ARM32 arm_pm_restart, gets initialized by
> 'machine_desc.restart' provided by each machine/platform
> implementation.
>
> For ARM64 how are different platforms supposed to initialize
> arm_pm_restart pointer?  (As there is no struct machine_desc defined
> for ARM64). Is there a framework similar to machine_desc for setting
> up the restart handlers?

Have a look at the stuff implemented in drivers/power/reset. The main
idea is to use a restart notifier, which works for both 32 and 64bit
kernels.

	M.
-- 
Jazz is not dead. It just smells funny.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-19 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-19 12:27 [Query] ARM64 : arm_pm_restart intialization Pankaj Chauhan
2015-01-19 13:19 ` Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).