diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-01 13:49:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-01 13:49:25 -0400 |
commit | 02201e3f1b46aed7c6348f406b7b40de80ba6de3 (patch) | |
tree | 2392c9098359725c195dd82a72b20ccedc1a1509 /drivers/power | |
parent | 0890a264794f33df540fbaf274699146903b4e6b (diff) | |
parent | 20bdc2cfdbc484777b30b96fcdbb8994038f3ce1 (diff) |
Merge tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
Pull module updates from Rusty Russell:
"Main excitement here is Peter Zijlstra's lockless rbtree optimization
to speed module address lookup. He found some abusers of the module
lock doing that too.
A little bit of parameter work here too; including Dan Streetman's
breaking up the big param mutex so writing a parameter can load
another module (yeah, really). Unfortunately that broke the usual
suspects, !CONFIG_MODULES and !CONFIG_SYSFS, so those fixes were
appended too"
* tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: (26 commits)
modules: only use mod->param_lock if CONFIG_MODULES
param: fix module param locks when !CONFIG_SYSFS.
rcu: merge fix for Convert ACCESS_ONCE() to READ_ONCE() and WRITE_ONCE()
module: add per-module param_lock
module: make perm const
params: suppress unused variable error, warn once just in case code changes.
modules: clarify CONFIG_MODULE_COMPRESS help, suggest 'N'.
kernel/module.c: avoid ifdefs for sig_enforce declaration
kernel/workqueue.c: remove ifdefs over wq_power_efficient
kernel/params.c: export param_ops_bool_enable_only
kernel/params.c: generalize bool_enable_only
kernel/module.c: use generic module param operaters for sig_enforce
kernel/params: constify struct kernel_param_ops uses
sysfs: tightened sysfs permission checks
module: Rework module_addr_{min,max}
module: Use __module_address() for module_address_lookup()
module: Make the mod_tree stuff conditional on PERF_EVENTS || TRACING
module: Optimize __module_address() using a latched RB-tree
rbtree: Implement generic latch_tree
seqlock: Introduce raw_read_seqcount_latch()
...
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/test_power.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/power/test_power.c b/drivers/power/test_power.c index f986e0cca7ac..83c42ea88f2b 100644 --- a/drivers/power/test_power.c +++ b/drivers/power/test_power.c | |||
@@ -448,42 +448,42 @@ static int param_set_battery_voltage(const char *key, | |||
448 | 448 | ||
449 | #define param_get_battery_voltage param_get_int | 449 | #define param_get_battery_voltage param_get_int |
450 | 450 | ||
451 | static struct kernel_param_ops param_ops_ac_online = { | 451 | static const struct kernel_param_ops param_ops_ac_online = { |
452 | .set = param_set_ac_online, | 452 | .set = param_set_ac_online, |
453 | .get = param_get_ac_online, | 453 | .get = param_get_ac_online, |
454 | }; | 454 | }; |
455 | 455 | ||
456 | static struct kernel_param_ops param_ops_usb_online = { | 456 | static const struct kernel_param_ops param_ops_usb_online = { |
457 | .set = param_set_usb_online, | 457 | .set = param_set_usb_online, |
458 | .get = param_get_usb_online, | 458 | .get = param_get_usb_online, |
459 | }; | 459 | }; |
460 | 460 | ||
461 | static struct kernel_param_ops param_ops_battery_status = { | 461 | static const struct kernel_param_ops param_ops_battery_status = { |
462 | .set = param_set_battery_status, | 462 | .set = param_set_battery_status, |
463 | .get = param_get_battery_status, | 463 | .get = param_get_battery_status, |
464 | }; | 464 | }; |
465 | 465 | ||
466 | static struct kernel_param_ops param_ops_battery_present = { | 466 | static const struct kernel_param_ops param_ops_battery_present = { |
467 | .set = param_set_battery_present, | 467 | .set = param_set_battery_present, |
468 | .get = param_get_battery_present, | 468 | .get = param_get_battery_present, |
469 | }; | 469 | }; |
470 | 470 | ||
471 | static struct kernel_param_ops param_ops_battery_technology = { | 471 | static const struct kernel_param_ops param_ops_battery_technology = { |
472 | .set = param_set_battery_technology, | 472 | .set = param_set_battery_technology, |
473 | .get = param_get_battery_technology, | 473 | .get = param_get_battery_technology, |
474 | }; | 474 | }; |
475 | 475 | ||
476 | static struct kernel_param_ops param_ops_battery_health = { | 476 | static const struct kernel_param_ops param_ops_battery_health = { |
477 | .set = param_set_battery_health, | 477 | .set = param_set_battery_health, |
478 | .get = param_get_battery_health, | 478 | .get = param_get_battery_health, |
479 | }; | 479 | }; |
480 | 480 | ||
481 | static struct kernel_param_ops param_ops_battery_capacity = { | 481 | static const struct kernel_param_ops param_ops_battery_capacity = { |
482 | .set = param_set_battery_capacity, | 482 | .set = param_set_battery_capacity, |
483 | .get = param_get_battery_capacity, | 483 | .get = param_get_battery_capacity, |
484 | }; | 484 | }; |
485 | 485 | ||
486 | static struct kernel_param_ops param_ops_battery_voltage = { | 486 | static const struct kernel_param_ops param_ops_battery_voltage = { |
487 | .set = param_set_battery_voltage, | 487 | .set = param_set_battery_voltage, |
488 | .get = param_get_battery_voltage, | 488 | .get = param_get_battery_voltage, |
489 | }; | 489 | }; |