diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-05-23 08:38:55 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-01 19:37:09 (GMT) |
commit | b2c064b25ad07169b2892a733918e6b941bf3366 (patch) | |
tree | e479497010ec39e986885f58df535feb4e1ae05f /include | |
parent | 2e4f1db49d97222110b6add9a2c6cf5251a41e35 (diff) | |
download | linux-fsl-qoriq-b2c064b25ad07169b2892a733918e6b941bf3366.tar.xz |
Driver core / memory: Simplify __memory_block_change_state()
As noted by Tang Chen, the last_online field in struct memory_block
introduced by commit 4960e05 (Driver core: Introduce offline/online
callbacks for memory blocks) is not really necessary, because
online_pages() restores the previous state if passed ONLINE_KEEP as
the last argument. Therefore, remove that field along with the code
referring to it.
References: http://marc.info/?l=linux-kernel&m=136919777305599&w=2
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Tang Chen <tangchen@cn.fujitsu.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/memory.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/memory.h b/include/linux/memory.h index 3d53465..85c31a8 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -26,7 +26,6 @@ struct memory_block { unsigned long start_section_nr; unsigned long end_section_nr; unsigned long state; - int last_online; int section_count; /* |