I am working on a modified kernel version 2.6.35 for the Olinuxino platform based on ARM9. I am trying to change the power management driver (part related to architecture).
The processor is Freescale i.MX23. This processor has a βspecialβ pin called PSWITCH, which triggers an interrupt that is processed by the power management driver. If the switch is pressed, the system goes into standby mode. This is done in the driver by calling pm_suspend(PM_SUSPEND_STANDBY) .
Given my hardware setup, I would like, instead, to shut down the system. So my question is:
What is the preferred way for the kernel-kernel process to start a clean system shutdown / shutdown?
I suppose there is a small little function there, but I could not find it so far.
My kernel code (the file I'm working on is arch / arm / mach-mx23 / pm.c) can be found here: github.com/spairal/linux-for-lobster , although my question requires a general Linux kernel approach.
linux linux-kernel embedded-linux
pcarranzav
source share