The best supported processor is the I5-2540m. Ensure that you have the most recent BIOS (or update to it) before replacing.
Edit: I missed that there was another page above where I was looking. The I7-2640M looks to be supported also. Pages 84 & 85 on this manual: http://h10032.www1.hp.com/ctg/Manual/c03137358