aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMike Tipton <[email protected]>2020-06-29 17:30:24 -0700
committerStephen Boyd <[email protected]>2020-07-24 02:03:58 -0700
commit03111b1088f18f93d38e888c41e8a1e6aba9f8bb (patch)
tree1fb5683436669d697ff5000fde0dfd223967538b /lib/memory-notifier-error-inject.c
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff)
clk: Add support for enabling/disabling clocks from debugfs
For test and debug purposes, it's simple enough to enable or disable clocks from shell. Add a new debugfs file 'clk_prepare_enable' that calls clk_prepare_enable() when writing "1" and clk_disable_unprepare() when writing "0". This can have security implications, so only support it when the code has been modified to #define CLOCK_ALLOW_WRITE_DEBUGFS. Signed-off-by: Mike Tipton <[email protected]> Link: https://lore.kernel.org/r/[email protected] [[email protected]: Reword commit text and remove comment update] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions