| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I have removed the spinlock changes. I have added another commit that adds a struct cpu reference to the percpu variable such that we can assert that the handler is indeed running on the BSP. Not sure if that is needed and it might introduce other issues if there is task migration later on. If sb thinks it is a bad idea, I can just drop that commit again. |
Sorry, something went wrong.
There was a problem hiding this comment.
Otherwise LGTM!
Sorry, something went wrong.
Driver for ACPI fixed power buttons. It allows overwriting the default handler so the button can be used for custom purposes. One such purpose might be to trigger an experiment to run. Signed-off-by: Sandro Rüegge <rueegges@ethz.ch>
Adding a self reference to the percpu allows checking what CPU some code is currently running on. We use this in pb_set_handler to ensure it runs on the bsp.
Signed-off-by: Sandro Rüegge <rueegges@ethz.ch>
There was a problem hiding this comment.
LGTM!
Thanks, @sparchatus!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add support for ACPI fixed power buttons. This is based on #350
I wanted to add the functionality to change the power button handler because it would be useful for triggering experiments for me. This opened up a race condition between the interrupt and the function changing the handler. The interrupt may not wait for a spinlock so I added a try_lock function but I am not very convinced by this approach.