Subversion Repositories HelenOS

Rev

Rev 1881 | Rev 1897 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1881 Rev 1896
Line 93... Line 93...
93
        return;
93
        return;
94
    }
94
    }
95
   
95
   
96
    for (; node != 0 && node != -1; node = ofw_get_peer_node(node)) {
96
    for (; node != 0 && node != -1; node = ofw_get_peer_node(node)) {
97
        if (ofw_get_property(node, "device_type", type_name, sizeof(type_name)) > 0) {
97
        if (ofw_get_property(node, "device_type", type_name, sizeof(type_name)) > 0) {
98
            if (strncmp(type_name, "cpu", 3) == 0) {
98
            if (strcmp(type_name, "cpu") == 0) {
99
                uint32_t mhz;
99
                uint32_t mhz;
100
               
100
               
101
                if (ofw_get_property(node, "clock-frequency", &mhz, sizeof(mhz)) <= 0)
101
                if (ofw_get_property(node, "clock-frequency", &mhz, sizeof(mhz)) <= 0)
102
                    continue;
102
                    continue;
103
                   
103