Performance and Energy Optimisation in CPUs through Fuzzy Knowledge Representation