Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e25035ad authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: pm: Correct the bit checking for cache type"

parents 0cfeea12 3901e721
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ static inline void msm_arch_idle(void)

static bool msm_pm_is_L1_writeback(void)
{
	u32 cache_id;
	u32 cache_id = 0;

#if defined(CONFIG_CPU_V7)
	u32 sel = 0;
@@ -106,7 +106,7 @@ static bool msm_pm_is_L1_writeback(void)
		      :[ccsidr]"=r" (cache_id)
		      :[ccselr]"r" (sel)
		     );
	return cache_id & BIT(31);
	return cache_id & BIT(30);
#elif defined(CONFIG_ARM64)
	u32 sel = 0;
	asm volatile("msr csselr_el1, %[ccselr]\n\t"