[LITMUS^RT] prop/reboot-callback

Glenn Elliott gelliott at cs.unc.edu
Fri Dec 7 20:54:25 CET 2012


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.

The patch is available on github as the 'prop/reboot-callback' branch.

Thanks,
Glenn



More information about the litmus-dev mailing list