x86: cpa, check if we changed anything and tlb flushing is necessary