according to the HP website your computer is not compatible with the 6 core AMD CPU.
HP Pavilion p6310f Desktop PC Product Specifications HP Pavilion p6310f Desktop PC - HP Customer Care (United States - English)
HP Pavilion p6310f Desktop PC Product Specifications HP Pavilion p6310f Desktop PC - HP Customer Care (United States - English)