summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/reboot.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ARM: 8568/1: reboot: remove duplicated local_irq_disable()Jisheng Zhang2016-05-051-3/+0
| | | | | | | | | Once entering machine_halt() and machine_restart(), local_irq_disable() is called, and local irq is kept disabled, so the local_irq_disable() at the end of these two functions are not necessary, remove it. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
* ARM: make virt_to_idmap() return unsigned longRussell King2016-02-081-1/+1
| | | | | | | | | | | | | | | Make virt_to_idmap() return an unsigned long rather than phys_addr_t. Returning phys_addr_t here makes no sense, because the definition of virt_to_idmap() is that it shall return a physical address which maps identically with the virtual address. Since virtual addresses are limited to 32-bit, identity mapped physical addresses are as well. Almost all users already had an implicit narrowing cast to unsigned long so let's make this official and part of this interface. Tested-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
* ARM: 8400/1: use virt_to_idmap to get phys_reset addressVitaly Andrianov2015-07-171-1/+1
| | | | | | | | | | This patch is to get correct physical address of the reset function for PAE systems, which use aliased physical memory for booting. See the "ARM: mm: Introduce virt_to_idmap() with an arch hook" for details. Signed-off-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
* ARM: move reboot code to arch/arm/kernel/reboot.cRussell King2015-04-021-0/+155
Move shutdown and reboot related code to a separate file, out of process.c. This helps to avoid polluting process.c with non-process related code. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>