Green’s Dictionary of Slang

whip v.2

[? SE whiplash, the way in which one’s head slumps suddenly onto one’s shoulder]

[1990s+] (US campus) to fall asleep while sitting up.