*TMZ is reporting that music legend Sly Stone has copped a plea that will keep him out of jail on cocaine charges.

The 68-year-old musician was arrested on April 1 after police claimed he was in possession of freebase cocaine.

Under the deal, Sly, who has already completed 30 days of in-patient rehab, must commit to an additional 60 days.  He pled no contest in court today and the judge imposed the sentence.  If Stone completes his rehab on time, the judge will dismiss the case outright and there will be no probation, reports TMZ.

Sly’s lawyers James E. Silverstein and Peter Knecht tell the website, “We are very pleased with the outcome of this case.”