Lines Matching refs:cpu
43 #include <sys/cpu.h>
85 int cpu;
94 int cpu;
98 CPU_FOREACH(cpu) {
99 if (CPU_ISSET(cpu, &sc->cpus)) {
100 pc = pcpu_find(cpu);
174 DPRINTF(dev, "Working on cpu %d\n", sc->cpu);
175 DPRINTF(dev, "We have %d cpu on this dev\n", CPU_COUNT(&sc->cpus));
176 if (!CPU_ISSET(sc->cpu, &sc->cpus)) {
298 /* Properties must be listed under node /cpus/cpu@0 */
301 /* The cpu@0 node must have the following properties */
303 (!OF_hasprop(node, "cpu-supply") &&
326 (!OF_hasprop(node, "cpu-supply") &&
457 int cpu;
466 sc->cpu = device_get_unit(device_get_parent(dev));
468 DPRINTF(dev, "cpu=%d\n", sc->cpu);
469 if (sc->cpu >= mp_ncpus) {
470 device_printf(dev, "Not attaching as cpu is not present\n");
475 "cpu-supply", &sc->reg) != 0) {
516 for (cpu = 0, cnode = OF_child(cnode); cnode > 0; cnode = OF_peer(cnode)) {
519 if (strcmp(device_type, "cpu") != 0)
521 if (cpu == sc->cpu) {
522 DPRINTF(dev, "Skipping our cpu\n");
523 CPU_SET(cpu, &sc->cpus);
524 cpu++;
527 DPRINTF(dev, "Testing CPU %d\n", cpu);
537 cpu, sc->cpu);
538 CPU_SET(cpu, &sc->cpus);
540 cpu++;
575 DRIVER_MODULE(cpufreq_dt, cpu, cpufreq_dt_driver, cpufreq_dt_devclass, 0, 0);