* Switch to profiling clock rates. */
| 718 | * Switch to profiling clock rates. |
| 719 | */ |
| 720 | void |
| 721 | cpu_startprofclock(void) |
| 722 | { |
| 723 | |
| 724 | ET_LOCK(); |
| 725 | if (profiling == 0) { |
| 726 | if (periodic) { |
| 727 | configtimer(0); |
| 728 | profiling = 1; |
| 729 | configtimer(1); |
| 730 | } else |
| 731 | profiling = 1; |
| 732 | } else |
| 733 | profiling++; |
| 734 | ET_UNLOCK(); |
| 735 | } |
| 736 | |
| 737 | /* |
| 738 | * Switch to regular clock rates. |