xtensa: use ITLB_HIT_BIT instead of hardcoded number
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 30 Mar 2017 02:53:49 +0000 (19:53 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 28 Apr 2017 20:38:04 +0000 (13:38 -0700)
There is ITLB_HIT_BIT macro, no need to use 0x8 to check for TLB hit.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/setup.c

index 197e75b400b169f6014e801744cdd4030f11f370..fd33920e1a1972a670be26a8bd7cc2732b73eed8 100644 (file)
@@ -453,9 +453,9 @@ void cpu_reset(void)
                        tmpaddr += SZ_512M;
 
                /* Invalidate mapping in the selected temporary area */
-               if (itlb_probe(tmpaddr) & 0x8)
+               if (itlb_probe(tmpaddr) & BIT(ITLB_HIT_BIT))
                        invalidate_itlb_entry(itlb_probe(tmpaddr));
-               if (itlb_probe(tmpaddr + PAGE_SIZE) & 0x8)
+               if (itlb_probe(tmpaddr + PAGE_SIZE) & BIT(ITLB_HIT_BIT))
                        invalidate_itlb_entry(itlb_probe(tmpaddr + PAGE_SIZE));
 
                /*