LCOV - code coverage report
Current view: top level - drivers/gpu/drm - drm_nomodeset.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 6 33.3 %
Date: 2022-12-09 01:23:36 Functions: 1 2 50.0 %

          Line data    Source code
       1             : // SPDX-License-Identifier: GPL-2.0
       2             : 
       3             : #include <linux/module.h>
       4             : #include <linux/types.h>
       5             : 
       6             : static bool drm_nomodeset;
       7             : 
       8           1 : bool drm_firmware_drivers_only(void)
       9             : {
      10           1 :         return drm_nomodeset;
      11             : }
      12             : EXPORT_SYMBOL(drm_firmware_drivers_only);
      13             : 
      14           0 : static int __init disable_modeset(char *str)
      15             : {
      16           0 :         drm_nomodeset = true;
      17             : 
      18           0 :         pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");
      19             : 
      20           0 :         return 1;
      21             : }
      22             : 
      23             : /* Disable kernel modesetting */
      24             : __setup("nomodeset", disable_modeset);

Generated by: LCOV version 1.14