[LITMUS^RT] prop/reboot-callback

Björn Brandenburg bbb at mpi-sws.org
Sat Dec 8 06:35:46 CET 2012



On 07.12.2012, at 15:54, Glenn Elliott <gelliott at cs.unc.edu> wrote:

> Hello All,
> 
> I have a small feature that I would like to get included into the new version of Litmus, if it is not too late.  My patch is only a handful of lines long and doesn't mess with any core logic to Litmus.
> 
> The proposed patch sends reboot notifications to Litmus.  This allows Litmus to run cleanup routines before the reboot proceeds.  Currently, the callback merely makes the active plugin the default Linux plugin (if the Linux plugin is not already active).  This switch invokes the active plugin shutdown sequence.  Failures to switch back to the Linux plugin are okay; a failure message is only printk()'ed, and the reboot is allowed to continue.
> 
> I'd like to get this feature into Litmus because some of my private branches set up things like Litmus-based interrupt handling threads.  These threads need to be shutdown for the system to reboot (the kernel panics otherwise).  I currently have to remember to switch Litmus back to the default plugin before rebooting.  Woe unto me if I forget to do this when I am working remotely---my system has no remote power control, so a visit to the lab to manually cycle the power.

Thanks for the patch; it looks good to me. I'll merge it when I get back from RTSS.

Any other patches to be merged? Everyone, if you get a chance, could you please check whether there are old, obsolete branches that could be removed?

Thanks,
Björn





More information about the litmus-dev mailing list