[PATCH 2/3] powerpc/pseries: Remove no longer needed rtas_hp_event flag

Nathan Fontenot nfont at linux.vnet.ibm.com
Sat Aug 27 07:04:02 AEST 2016


Remove the use of the rtas_hp_event flag as it is no longer needed. the
managememnet of the static dynamic-memory property does not go through
of_update_property so we do not need to set this flag.

Signed-off-by: Nathan Fontenot <nfont at linux.vnet.ibm.com>
---
 arch/powerpc/platforms/pseries/hotplug-memory.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c
index 5173e49..a0371d1 100644
--- a/arch/powerpc/platforms/pseries/hotplug-memory.c
+++ b/arch/powerpc/platforms/pseries/hotplug-memory.c
@@ -24,8 +24,6 @@
 #include <asm/sparsemem.h>
 #include "pseries.h"
 
-static bool rtas_hp_event;
-
 static struct drconf_mem {
 	u32 num_lmbs;
 	struct of_drconf_cell *lmbs;
@@ -929,9 +927,6 @@ static int pseries_update_drconf_memory(struct of_reconfig_data *pr)
 	__be32 *p;
 	int i, rc = -EINVAL;
 
-	if (rtas_hp_event)
-		return 0;
-
 	update_drconf_memory();
 
 	memblock_size = pseries_memory_block_size();



More information about the Linuxppc-dev mailing list