It does automatically change, though, I would recommend you to set 333 MHz for every game to boost loading times, because most games do not change MHz frequency. You can easily do it on jailbroken PSP while in XMB via VHS menu, which is triggered by SELECT button.
EDIT - apparently, I've just...