/* Change protections to allow amo operations on Shub 1.1 systems.  */
static void xpc_allow_amo_ops_shub_wars_1_1_sn2(void)
/* Change protections to allow amo operations on Shub 1.1 systems.  */
static void xpc_allow_amo_ops_shub_wars_1_1_sn2(void)
{
	int node;
	int nasid;
	if (!enable_shub_wars_1_1())
		return;
	for_each_online_node(node) {
		nasid = cnodeid_to_nasid(node);
		xpc_prot_vec_sn2[node] =
		    (u64)HUB_L((u64 *)GLOBAL_MMR_ADDR(nasid,
						  SH1_MD_DQLP_MMR_DIR_PRIVEC0));
		HUB_S((u64 *)GLOBAL_MMR_ADDR(nasid,
					     SH1_MD_DQLP_MMR_DIR_PRIVEC0),
		      -1UL);
		HUB_S((u64 *)GLOBAL_MMR_ADDR(nasid,
					     SH1_MD_DQRP_MMR_DIR_PRIVEC0),
		      -1UL);
	}
}