Older Beemers like my first (K100RS - 1985 model) used Bosch LE
Jetronic .... as it approached red line, it first retarded the spark, which slowed things down a bit. If the rider insisted on keeping the revs rising, next the Bosch system cut off the fuel injection system. No fuel = no go! Like Larry said, it's digital. All the ECU is looking for is whether the rpm is less than, same as, ...