Douglas Harper's Etymology Dictionary
k.p.
"kitchen duty," 1935, apparently short for kitchen police (duties), itself attested from 1933 as part of Boy Scouting and other camping activities; the expression's sense sometimes shifted to kitchen patrol (1940) during World War II.