PERFORCE change 95293 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sat Apr 15 00:08:52 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95293
Change 95293 by marcel at marcel_nfs on 2006/04/15 00:08:07
Remove the puc(4) specific hacks to rman. I'm going to
rewrite puc(4) to use its own rman.
Affected files ...
.. //depot/projects/uart/kern/subr_rman.c#7 edit
.. //depot/projects/uart/sys/rman.h#7 edit
Differences ...
==== //depot/projects/uart/kern/subr_rman.c#7 (text+ko) ====
@@ -122,31 +122,6 @@
return (r);
}
-/*
- * XXX: puc.c is a big hack.
- * XXX: it should be rewritten to act like a bridge and offer
- * XXX: its own resource manager.
- * XXX: until somebody has time, help it out with these two functions
- */
-
-struct resource *
-rman_secret_puc_alloc_resource(int malloc_flag)
-{
- struct resource_i *r;
-
- r = int_alloc_resource(malloc_flag);
- if (r)
- return (&r->r_r);
- return (NULL);
-}
-
-void
-rman_secret_puc_free_resource(struct resource *r)
-{
-
- free(r->__r_i, M_RMAN);
-}
-
int
rman_init(struct rman *rm)
{
==== //depot/projects/uart/sys/rman.h#7 (text+ko) ====
@@ -149,14 +149,6 @@
extern struct rman_head rman_head;
-/*
- * XXX: puc.c is a big hack.
- * XXX: it should be rewritten to act like a bridge and offer
- * XXX: its own resource manager.
- * XXX: until somebody has time, help it out with these two functions
- */
-struct resource *rman_secret_puc_alloc_resource(int malloc_flag);
-void rman_secret_puc_free_resource(struct resource *r);
#endif /* _KERNEL */
#endif /* !_SYS_RMAN_H_ */
More information about the p4-projects
mailing list