Merge branches 'pnp', 'pm-cpuidle' and 'pm-cpufreq'
[firefly-linux-kernel-4.4.55.git] / drivers / iommu / amd_iommu.c
index 59de6364a9109be4baba8f36fd7e331a13261128..48882c126245b28aa0e4d8c44ad675551385e398 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2007-2010 Advanced Micro Devices, Inc.
- * Author: Joerg Roedel <joerg.roedel@amd.com>
+ * Author: Joerg Roedel <jroedel@suse.de>
  *         Leo Duran <leo.duran@amd.com>
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -843,10 +843,10 @@ static void build_inv_iommu_pages(struct iommu_cmd *cmd, u64 address,
                                  size_t size, u16 domid, int pde)
 {
        u64 pages;
-       int s;
+       bool s;
 
        pages = iommu_num_pages(address, size, PAGE_SIZE);
-       s     = 0;
+       s     = false;
 
        if (pages > 1) {
                /*
@@ -854,7 +854,7 @@ static void build_inv_iommu_pages(struct iommu_cmd *cmd, u64 address,
                 * TLB entries for this domain
                 */
                address = CMD_INV_IOMMU_ALL_PAGES_ADDRESS;
-               s = 1;
+               s = true;
        }
 
        address &= PAGE_MASK;
@@ -874,10 +874,10 @@ static void build_inv_iotlb_pages(struct iommu_cmd *cmd, u16 devid, int qdep,
                                  u64 address, size_t size)
 {
        u64 pages;
-       int s;
+       bool s;
 
        pages = iommu_num_pages(address, size, PAGE_SIZE);
-       s     = 0;
+       s     = false;
 
        if (pages > 1) {
                /*
@@ -885,7 +885,7 @@ static void build_inv_iotlb_pages(struct iommu_cmd *cmd, u16 devid, int qdep,
                 * TLB entries for this domain
                 */
                address = CMD_INV_IOMMU_ALL_PAGES_ADDRESS;
-               s = 1;
+               s = true;
        }
 
        address &= PAGE_MASK;