There is vendor specific code in generic x86 code, and there is vendorspecific code that could be generic. This patch introducesx86_pmu_enable_counter() for x86 generic code. Fixed counter code forIntel is moved to Intel only functions. In the end, checks and callsvia function pointers were reduced to the necessary. Also, theinternal function i/f changed.