@@ -272,17 +272,12 @@ def LparSetup(self, lpar_config=""):
272
272
self .max_memory = int (self .cv_HMC .get_available_mem_resources ()[
273
273
0 ]) + self .cv_HMC .get_stealable_mem_resources_lpar ()
274
274
proc_mode = 'shared'
275
- curr_proc_mode = self .cv_HMC .get_proc_mode ()
276
- if proc_mode in curr_proc_mode and not lpar_config :
277
- log .info ("System is already booted in shared mode." )
278
- else :
279
- if not lpar_config :
280
- self .cv_HMC .profile_bckup ()
281
- self .cv_HMC .change_proc_mode (proc_mode , self .sharing_mode ,
282
- self .min_proc_units , self .desired_proc_units ,
283
- self .max_proc_units , self .min_memory ,
284
- self .desired_memory , self .max_memory ,
285
- self .overcommit_ratio )
275
+ self .cv_HMC .profile_bckup ()
276
+ self .cv_HMC .change_proc_mode (proc_mode , self .sharing_mode ,
277
+ self .min_proc_units , self .desired_proc_units ,
278
+ self .max_proc_units , self .min_memory ,
279
+ self .desired_memory , self .max_memory ,
280
+ self .overcommit_ratio )
286
281
'''
287
282
If cpu=dedicated is passed in machine_config lpar proc mode
288
283
changes to dedicated mode. Pass sharing_mode, min_proc_units,
0 commit comments