]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/s390/char/sclp_cmd.c
memory hotplug/s390: set phys_device
[mirror_ubuntu-artful-kernel.git] / drivers / s390 / char / sclp_cmd.c
index 28b5afc129c36be0cc2396a8f965aafef02fd108..fc7ae05ce48ae262374b0becc3373a1b42d00690 100644 (file)
@@ -547,7 +547,7 @@ struct read_storage_sccb {
        u32 entries[0];
 } __packed;
 
-static struct dev_pm_ops sclp_mem_pm_ops = {
+static const struct dev_pm_ops sclp_mem_pm_ops = {
        .freeze         = sclp_mem_freeze,
 };
 
@@ -704,6 +704,13 @@ int sclp_chp_deconfigure(struct chp_id chpid)
        return do_chp_configure(SCLP_CMDW_DECONFIGURE_CHPATH | chpid.id << 8);
 }
 
+int arch_get_memory_phys_device(unsigned long start_pfn)
+{
+       if (!rzm)
+               return 0;
+       return PFN_PHYS(start_pfn) / rzm;
+}
+
 struct chp_info_sccb {
        struct sccb_header header;
        u8 recognized[SCLP_CHP_INFO_MASK_SIZE];