[rtems-libbsd commit] Enable the Cadence cgem device syctls.

Chris Johns chrisj at rtems.org
Mon Jun 27 11:31:10 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    ace5fb657c1ebb116f0fbcff531cd74234833534
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=ace5fb657c1ebb116f0fbcff531cd74234833534

Author:    Chris Johns <chrisj at rtems.org>
Date:      Mon Jun 27 21:31:03 2016 +1000

Enable the Cadence cgem device syctls.

---

 freebsd/sys/dev/cadence/if_cgem.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/freebsd/sys/dev/cadence/if_cgem.c b/freebsd/sys/dev/cadence/if_cgem.c
index df4d346..950208e 100644
--- a/freebsd/sys/dev/cadence/if_cgem.c
+++ b/freebsd/sys/dev/cadence/if_cgem.c
@@ -1529,7 +1529,6 @@ cgem_mediachange(struct cgem_softc *sc,	struct mii_data *mii)
 static void
 cgem_add_sysctls(device_t dev)
 {
-#ifndef __rtems__
 	struct cgem_softc *sc = device_get_softc(dev);
 	struct sysctl_ctx_list *ctx;
 	struct sysctl_oid_list *child;
@@ -1702,7 +1701,6 @@ cgem_add_sysctls(device_t dev)
 	SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_udp_csum_errs",
 			CTLFLAG_RD, &sc->stats.rx_udp_csum_errs, 0,
 			"Number frames received with UDP checksum errors");
-#endif /* __rtems__ */
 }
 
 



More information about the vc mailing list