I think you should probably fix the way you sit and do your revision because it is the main factor for the neck pain. When that used to happen, I used to try a gel that usually relieves muscle ach and it used to work, but then Paracetamol, Ibuprofen should be working, don't think there's anything else. I advice you to go to the GP if the neck pain becomes worse because that would probably indicate a bigger problem