kern_et.c (6f3544cd7084abbadd83637993a4f41fd30e6ccd) | kern_et.c (fbbb13f962e52bf547c5a901fe6fbc4390f6be54) |
---|---|
1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 51 unchanged lines hidden (view full) --- 60 "frequency %ju Hz quality %d\n", 61 et->et_name, (uintmax_t)et->et_frequency, 62 et->et_quality); 63 } 64 } 65 et->et_sysctl = SYSCTL_ADD_NODE(NULL, 66 SYSCTL_STATIC_CHILDREN(_kern_eventtimer_et), OID_AUTO, et->et_name, 67 CTLFLAG_RW, 0, "event timer description"); | 1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 51 unchanged lines hidden (view full) --- 60 "frequency %ju Hz quality %d\n", 61 et->et_name, (uintmax_t)et->et_frequency, 62 et->et_quality); 63 } 64 } 65 et->et_sysctl = SYSCTL_ADD_NODE(NULL, 66 SYSCTL_STATIC_CHILDREN(_kern_eventtimer_et), OID_AUTO, et->et_name, 67 CTLFLAG_RW, 0, "event timer description"); |
68 SYSCTL_ADD_UINT(NULL, SYSCTL_CHILDREN(et->et_sysctl), OID_AUTO, | 68 SYSCTL_ADD_INT(NULL, SYSCTL_CHILDREN(et->et_sysctl), OID_AUTO, |
69 "flags", CTLFLAG_RD, &(et->et_flags), 0, 70 "Event timer capabilities"); | 69 "flags", CTLFLAG_RD, &(et->et_flags), 0, 70 "Event timer capabilities"); |
71 SYSCTL_ADD_QUAD(NULL, SYSCTL_CHILDREN(et->et_sysctl), OID_AUTO, | 71 SYSCTL_ADD_UQUAD(NULL, SYSCTL_CHILDREN(et->et_sysctl), OID_AUTO, |
72 "frequency", CTLFLAG_RD, &(et->et_frequency), 73 "Event timer base frequency"); 74 SYSCTL_ADD_INT(NULL, SYSCTL_CHILDREN(et->et_sysctl), OID_AUTO, 75 "quality", CTLFLAG_RD, &(et->et_quality), 0, 76 "Goodness of event timer"); 77 ET_LOCK(); 78 if (SLIST_EMPTY(&eventtimers) || 79 SLIST_FIRST(&eventtimers)->et_quality < et->et_quality) { --- 180 unchanged lines hidden --- | 72 "frequency", CTLFLAG_RD, &(et->et_frequency), 73 "Event timer base frequency"); 74 SYSCTL_ADD_INT(NULL, SYSCTL_CHILDREN(et->et_sysctl), OID_AUTO, 75 "quality", CTLFLAG_RD, &(et->et_quality), 0, 76 "Goodness of event timer"); 77 ET_LOCK(); 78 if (SLIST_EMPTY(&eventtimers) || 79 SLIST_FIRST(&eventtimers)->et_quality < et->et_quality) { --- 180 unchanged lines hidden --- |