diff options
| author | Andres Salomon <[email protected]> | 2012-07-12 00:40:25 +0000 |
|---|---|---|
| committer | Andres Salomon <[email protected]> | 2012-08-01 03:27:30 +0000 |
| commit | 3d26c20bae9e97c98f7240184427d3a38515d406 (patch) | |
| tree | 987a82438ffe61b675cf08d33b3e11154b605f58 /lib/dynamic_debug.c | |
| parent | drivers: OLPC: update various drivers to include olpc-ec.h (diff) | |
| download | kernel-3d26c20bae9e97c98f7240184427d3a38515d406.tar.gz kernel-3d26c20bae9e97c98f7240184427d3a38515d406.zip | |
Platform: OLPC: allow EC cmd to be overridden, and create a workqueue to call it
This provides a new API allows different OLPC architectures to override the
EC driver. x86 and ARM OLPC machines use completely different EC backends.
The olpc_ec_cmd is synchronous, and waits for the workqueue to send the
command to the EC. Multiple callers can run olpc_ec_cmd() at once, and
they will by serialized and sleep while only one executes on the EC at a time.
We don't provide an unregister function, as that doesn't make sense within
the context of OLPC machines - there's only ever 1 EC, it's critical to
functionality, and it certainly not hotpluggable.
Signed-off-by: Andres Salomon <[email protected]>
Acked-by: Paul Fox <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
