cmm.c (0337966d121ebebf73a1c346123e8112796e684e) cmm.c (e4dca7b7aa08b22893c45485d222b5807c1375ae)
1/*
2 * Collaborative memory management interface.
3 *
4 * Copyright (C) 2008 IBM Corporation
5 * Author(s): Brian King (brking@linux.vnet.ibm.com),
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 728 unchanged lines hidden (view full) ---

737}
738
739/**
740 * cmm_set_disable - Disable/Enable CMM
741 *
742 * Return value:
743 * 0 on success / other on failure
744 **/
1/*
2 * Collaborative memory management interface.
3 *
4 * Copyright (C) 2008 IBM Corporation
5 * Author(s): Brian King (brking@linux.vnet.ibm.com),
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 728 unchanged lines hidden (view full) ---

737}
738
739/**
740 * cmm_set_disable - Disable/Enable CMM
741 *
742 * Return value:
743 * 0 on success / other on failure
744 **/
745static int cmm_set_disable(const char *val, struct kernel_param *kp)
745static int cmm_set_disable(const char *val, const struct kernel_param *kp)
746{
747 int disable = simple_strtoul(val, NULL, 10);
748
749 if (disable != 0 && disable != 1)
750 return -EINVAL;
751
752 if (disable && !cmm_disabled) {
753 if (cmm_thread_ptr)

--- 20 unchanged lines hidden ---
746{
747 int disable = simple_strtoul(val, NULL, 10);
748
749 if (disable != 0 && disable != 1)
750 return -EINVAL;
751
752 if (disable && !cmm_disabled) {
753 if (cmm_thread_ptr)

--- 20 unchanged lines hidden ---