Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/jdolecek-ncq]: src/sys/dev/ic make ahci_channel_recover() non-static, so...



details:   https://anonhg.NetBSD.org/src/rev/a2e21f13e0a3
branches:  jdolecek-ncq
changeset: 822978:a2e21f13e0a3
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jul 29 14:50:58 2017 +0000

description:
make ahci_channel_recover() non-static, so that it's visible in backtrace,
and can set a separate breakpoint there

diffstat:

 sys/dev/ic/ahcisata_core.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 08eb2dbddfd7 -r a2e21f13e0a3 sys/dev/ic/ahcisata_core.c
--- a/sys/dev/ic/ahcisata_core.c        Sat Jul 29 13:04:43 2017 +0000
+++ b/sys/dev/ic/ahcisata_core.c        Sat Jul 29 14:50:58 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahcisata_core.c,v 1.57.6.21 2017/07/29 13:02:50 jdolecek Exp $ */
+/*     $NetBSD: ahcisata_core.c,v 1.57.6.22 2017/07/29 14:50:58 jdolecek Exp $ */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.57.6.21 2017/07/29 13:02:50 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.57.6.22 2017/07/29 14:50:58 jdolecek Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -77,8 +77,7 @@
 static void ahci_channel_stop(struct ahci_softc *, struct ata_channel *, int);
 static void ahci_channel_start(struct ahci_softc *, struct ata_channel *,
                                int, int);
-static void ahci_channel_recover(struct ahci_softc *, struct ata_channel *,
-    int);
+void ahci_channel_recover(struct ahci_softc *, struct ata_channel *, int);
 static int  ahci_dma_setup(struct ata_channel *, int, void *, size_t, int);
 
 #if NATAPIBUS > 0
@@ -627,7 +626,7 @@
                tfd = 0;
        }
 
-       if (recover)
+       if (__predict_false(recover))
                ata_channel_freeze(chp);
 
        if (slot >= 0) {
@@ -652,7 +651,7 @@
                }
        }
 
-       if (recover) {
+       if (__predict_false(recover)) {
                ata_channel_thaw(chp);
                ahci_channel_recover(sc, chp, tfd);
        }



Home | Main Index | Thread Index | Old Index