According to the motherboard specifications for your computer (found on HP's website: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01080268&cc=us&dlc=en&lc=en#N55), that CPU should work. However, this is an older computer, and you may not get the desired performance increase you are looking for.
Casey