summaryrefslogtreecommitdiff
path: root/include/linux/memory.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-09 02:08:02 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-09 02:08:02 +0300
commit4b42fafc1cdc4aba38d4f147cb2f3f1a32cd4a15 (patch)
tree7f162d0612f7048dc52a3ba320a6685593100729 /include/linux/memory.h
parentb318556479cc923970a79d6c2311138581c0db83 (diff)
parent6c9d9c81924b4b63c7a487e90fddb3b2d0f7d458 (diff)
downloadlinux-4b42fafc1cdc4aba38d4f147cb2f3f1a32cd4a15.tar.xz
Merge branch 'pm-cpufreq-sched' into pm-cpufreq
Diffstat (limited to 'include/linux/memory.h')
-rw-r--r--include/linux/memory.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/linux/memory.h b/include/linux/memory.h
index 8b8d8d12348e..093607f90b91 100644
--- a/include/linux/memory.h
+++ b/include/linux/memory.h
@@ -109,6 +109,9 @@ extern void unregister_memory_notifier(struct notifier_block *nb);
extern int register_memory_isolate_notifier(struct notifier_block *nb);
extern void unregister_memory_isolate_notifier(struct notifier_block *nb);
extern int register_new_memory(int, struct mem_section *);
+extern int memory_block_change_state(struct memory_block *mem,
+ unsigned long to_state,
+ unsigned long from_state_req);
#ifdef CONFIG_MEMORY_HOTREMOVE
extern int unregister_memory_section(struct mem_section *);
#endif
@@ -137,17 +140,6 @@ extern struct memory_block *find_memory_block(struct mem_section *);
#endif
/*
- * 'struct memory_accessor' is a generic interface to provide
- * in-kernel access to persistent memory such as i2c or SPI EEPROMs
- */
-struct memory_accessor {
- ssize_t (*read)(struct memory_accessor *, char *buf, off_t offset,
- size_t count);
- ssize_t (*write)(struct memory_accessor *, const char *buf,
- off_t offset, size_t count);
-};
-
-/*
* Kernel text modification mutex, used for code patching. Users of this lock
* can sleep.
*/