/* Extract the mask from the dcsb0 entry in a CPU revision-specific way.  */
static u64 mask_from_dct_mask(struct amd64_pvt *pvt, int csrow)
/* Extract the mask from the dcsb0 entry in a CPU revision-specific way.  */
static u64 mask_from_dct_mask(struct amd64_pvt *pvt, int csrow)
{
	u64 dcsm_bits, other_bits;
	u64 mask;
	dcsm_bits = amd64_get_dct_mask(pvt, 0, csrow) & pvt->dcsm_mask;
	other_bits = pvt->dcsm_mask;
	other_bits = ~(other_bits << pvt->dcs_shift);
	mask = (dcsm_bits << pvt->dcs_shift) | other_bits;
	return mask;
}