]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/base/memory.c
Merge tag 'metag-v3.9-rc1-v4' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan...
[karo-tx-linux.git] / drivers / base / memory.c
index 83d0b17ba1c20231d51a248224996cfefbdabcc6..a51007b790327dfe6c1df06dc2f2240f5e94ca3b 100644 (file)
@@ -693,6 +693,12 @@ int offline_memory_block(struct memory_block *mem)
        return ret;
 }
 
+/* return true if the memory block is offlined, otherwise, return false */
+bool is_memblock_offlined(struct memory_block *mem)
+{
+       return mem->state == MEM_OFFLINE;
+}
+
 /*
  * Initialize the sysfs support for memory devices...
  */