vmw_balloon.c (d2137d5af4259f50c19addb8246a186c9ffac325) vmw_balloon.c (58a69cb47ec6991bf006a3e5d202e8571b0327a4)
1/*
2 * VMware Balloon driver.
3 *
4 * Copyright (C) 2000-2010, VMware, Inc. All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; version 2 of the License and no later version.

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

780
781 /*
782 * Check if we are running on VMware's hypervisor and bail out
783 * if we are not.
784 */
785 if (x86_hyper != &x86_hyper_vmware)
786 return -ENODEV;
787
1/*
2 * VMware Balloon driver.
3 *
4 * Copyright (C) 2000-2010, VMware, Inc. All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; version 2 of the License and no later version.

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

780
781 /*
782 * Check if we are running on VMware's hypervisor and bail out
783 * if we are not.
784 */
785 if (x86_hyper != &x86_hyper_vmware)
786 return -ENODEV;
787
788 vmballoon_wq = create_freezeable_workqueue("vmmemctl");
788 vmballoon_wq = create_freezable_workqueue("vmmemctl");
789 if (!vmballoon_wq) {
790 pr_err("failed to create workqueue\n");
791 return -ENOMEM;
792 }
793
794 INIT_LIST_HEAD(&balloon.pages);
795 INIT_LIST_HEAD(&balloon.refused_pages);
796

--- 51 unchanged lines hidden ---
789 if (!vmballoon_wq) {
790 pr_err("failed to create workqueue\n");
791 return -ENOMEM;
792 }
793
794 INIT_LIST_HEAD(&balloon.pages);
795 INIT_LIST_HEAD(&balloon.refused_pages);
796

--- 51 unchanged lines hidden ---